-
Notifications
You must be signed in to change notification settings - Fork 602
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
Version 0.33 not iterating over all key algorithms #789
Comments
@dkocher and @ylangisc please take a look on this as it looks like related to #761 and #763 |
I'm unable to reproduce the issue described with the following setup:
Output on the server side shows that all three available algorithms are tested:
|
Turns out the server with PubKeyAcceptedAlgorithms=ssh-rsa had MaxAuthTries set to 2. |
I increased this to even 10 and even then its not working. Our production upgrade is failing due the same issue after we upgraded to 0.35.0. Please suggest |
@sawanverma This issue is closed, can you post a bit more background/details what exactly is failing? The RSA2/RSA switcharoo and MaxAuthRetries should work correctly. |
With SSHJ 0.33 if a specific key has more than 2 algorithms then library will take only first 2 (not iterating over all algorithms).
For example for RSA we have:
rsa-sha2-512
rsa-sha2-256
ssh-rsa
SSHJ will only take rsa-sha2-512, then it will try rsa-sha2-256 and then it will fail (without trying ssh-rsa).
This was bug is introduced in #763.
The text was updated successfully, but these errors were encountered: