-
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
NullPointerException at connect #34
Comments
Hi Ulf, thanks for reporting this issue, need to look into that. Regarding the ssh.ed25519 question, yes you need to use Java 15, compare to subhra74/snowflake#16 (comment) |
Great, thanks for the quick answer! |
note to myself: the NPE occurs, when an encrypted openssh v1 key as added as identity without setting its password. |
Hi Matthias, Just uploaded a trace which indicates the same error for a key that has been added. The user runs Java 15. Regards |
Hi Ulf, |
Hi Matthias, Sorry for being unclear by added I mean it has been added as a trusted key at the server. Implementation wise we are doing something like:
This is the same implementation not matter of key formats. No problem of connecting using other keys in our product (DbVisualizer) |
ok, thanks for your clarification. I think I came closer to the problem. The issue comes, when the key is encrypted and the identity is added without the passphrase. Instead the passphrase is coming from Userinfo#getPassphrase() and the decryption happens in com.jcraft.jsch.UserAuthPublicKey line 204. For KeypairDeferred this is too late, as the getAlgName() is needed in line 92. |
Hi Matthias |
Hi Ulf, I released the library in version 0.1.62. Please check whether the issue is fixed. |
Hi Matthias, |
Hi Mattias, Is there a Jar somewhere? Or am I being to impatient? :-) Regards |
Yes maven Central sync can take up to 24 hours 😁
uffeweil <[email protected]> schrieb am Do., 4. März 2021, 17:36:
… Hi Mattias,
Is there a Jar somewhere? Or am I being to impatient? :-)
Regards
Ulf
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL6NOG3TERI7CSDQUGRBNTTB6ZIJANCNFSM4YF7CPRA>
.
|
Hi Mattias Just thought I would inform you that our user has reported that he can now connect using the 0.1.62 version. Regards |
Hi!
First I'd like to thank you for proving this new distribution of Jsch. Very appreciated!!
Using a key (New openssh-v1-private-key format) that has not been added at the server leads to NullPointerException.
Converting the key to PEM format and the error is instead the expected "Auth fail".
Caused by: java.lang.NullPointerException at com.jcraft.jsch.KeyPairDeferred.getKeyTypeName(KeyPairDeferred.java:120) at com.jcraft.jsch.IdentityFile.getAlgName(IdentityFile.java:106)
Full log and key in attached files below.
By the way in the release notes you state that ssh-ed25519 is supported. Is this implementation ripped out of Java 15 or does it require a Java 15 VM to be used?
Kind regards Ulf
FailDbvisNewSSHKey.txt
id_rsa_notTrustedNewSSHFormat.txt
The text was updated successfully, but these errors were encountered: