-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE when trying to connect to OpenSuse Leap 15.5 #361
Comments
Hi @granbebe, When you attempt to connect to CentOS with an invalid key, do you get a JSchException instead of a NPE like you to with openSUSE? Thanks, |
Hi @granbebe, Also do you have some sort of Thanks, |
Hi,
Which is perfect. I do have an implementation of UserInfo. I use a class that implements both UserInfo and UIKeyboardInteractive mostly to log some details (as the prompt) and handle the user/password authentication (when selected by the user). Best regards |
Hi @granbebe, I believe you are getting this NPE because your UserInfo implementation is flawed. Thanks, |
Hi, Thank you for this information.
This is better as our users will understand that the issue is related to a bad configuration of their SSH key. I settled for an empty string as it is the same as updating the code of UserAuthKeyboardInteractive the way I was thinking. For my use case, this issue is resolved. Should I close it now or do you want a pull request with the change of UserAuthKeyboardInteractive ? Best regards, |
Hi @granbebe, Please keep this open for now. Thanks, |
… include NULL elements in the `String[]` returned from `promptKeyboardInteractive()`.
… include NULL elements in the `String[]` returned from `promptKeyboardInteractive()`.
Hello, Sorry for the delay.
Thank you for your time and your work. Best regards |
Hello,
I have an issue with the following configuration :
I expect something like this : Algorithm negotiation fail
I get Cannot read the array length because "foo" is null
There is no issue if the provided key is valid.
There is no such NPE if the server is CentOS (in its default config)
The error (NPE) does not help my users to understand that they just have set the wrong ssh key.
Is it a good solution to adapt com.jcraft.jsch.UserAuthKeyboardInteractive.start(UserAuthKeyboardInteractive.java:175) from
to
Best regards,
The text was updated successfully, but these errors were encountered: