Skip to content

Fixed: Prefer newer rsa versions (256 and 512) before legacy (ssh-rsa)#1023

Open
devlinx9 wants to merge 1 commit intohierynomus:masterfrom
devlinx9:master
Open

Fixed: Prefer newer rsa versions (256 and 512) before legacy (ssh-rsa)#1023
devlinx9 wants to merge 1 commit intohierynomus:masterfrom
devlinx9:master

Conversation

@devlinx9
Copy link
Copy Markdown

When the host is added to known_hosts and it supports rsa-sha2-256 or rsa-sha2-512, the filterKnownHostKeyAlgorithms method put first ssh-rsa before the newer versions. That's because the signature is ssh-rsa in the known_hosts file. if the server only accepts as its first or only method rsa-sha2-512, the connection will fail since the preferred method on the client side is still the outdated ssh-rsa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant