-
Notifications
You must be signed in to change notification settings - Fork 152
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
Still throws JSchException: invalid privatekey #12
Comments
you have the same issue as described in https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch your ssh version is >= 7.8, so the generated key has OPENSSH format, which has Please generate the key using |
Got it |
is this supported now ? i am getting the error com.jcraft.jsch.JSchException: invalid privatekey: [B@49e202ad |
Same question here. I have the same error with openssh |
I run my program using this version to connect remote host by private id_rsa file on mac ,but program run error throws this exception:
com.jcraft.jsch.JSchException: invalid privatekey: [B@9807454
at com.jcraft.jsch.KeyPair.load(KeyPair.java:666)
at com.jcraft.jsch.KeyPair.load(KeyPair.java:563)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:425)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:406)
ssh version:
OpenSSH_7.9p1, LibreSSL 2.7.3
The id_rsa file is generated by the command " ssh-keygen -t rsa" , so current version does not support this encryption algorithm ?
The text was updated successfully, but these errors were encountered: