-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
unknown key Name("ecdsa-sha2-nistp256") #259
Comments
Are you on the latest version of the crate? |
Yes, I'm running latest - v0.43.0-beta.1 |
So the problems seems to be that the server will filter out the host key algorithms for which it does not have keys when offering them to the client but will not do the same when selecting the algorithm on the server side. This will cause it to incorrectly choose I made a commit to fix this. This should also fix #245 since I also encountered it when using libgit2 |
@T0b1-iOS thanks! I've reworked your code a bit and put it up in #262 @TwilightVanish @Qix- could you please give it a try? |
Thanks for doing this! I haven't had the chance to test, been keeping this 'unread' until I do (I'm on vacation at the moment and we were using Russh at work). Despite being closed already I'll still keep this on my list and check it next week and report back for good measure. Highly appreciated :) |
Something is going wrong when exchanging keys (similar to #227?). However it doesn't seem like ecdsa-sha2-nistp256 is the selected host key algorithm from ssh logs. This issue also appears when running the example echoserver provided in the repo.
Russh logs:
SSH logs:
To solve this issue I need to specifically add "HostKeyAlgorithms ssh-ed25519" to my ssh config.
The text was updated successfully, but these errors were encountered: