-
Notifications
You must be signed in to change notification settings - Fork 148
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
Algorithm negotiation fail with 0.1.63 #62
Comments
I think you are running into the same problem like others in i.e. in #40 or #45 , because the default configuration was changed. There are existing discussions in #59 and an open PR #61 so I do not think it's a new issue. |
Thanks for reply. |
It's other problem. |
Hi @xiahaohai123, I suspect the issue you are encountering with ssh-rsa is similar to the issues as commented in #45 (comment) & #47 (comment). What is probably occurring is that JSch is first attempting rsa-sha2-512 & rsa-sha2-256, which are both rejected by your server (because it doesn't support them). And then your server closes the SSH session before JSch can attempt ssh-rsa based authentication (because the connection has hit the server's MaxAuthTries limit). I suspect that if you tried this in your application, the connection would succeed using ssh-rsa:
This will move ssh-rsa to the head of the list, making it the first signature algorithm that is attempted by JSch for authentication (before it attempts rsa-sha2-512 & rsa-sha2-256). Thanks, |
I got com.jcraft.jsch.JSchException: Algorithm negotiation fail when I connect to a server which only support ssh-dss and ssh-rsa.
This problem doesn't happen with 0.1.57.
Are these algorithm no longer supported?
The text was updated successfully, but these errors were encountered: