We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use this code to add an entry to known_hosts: https://github.com/NMSSH/NMSSH/blob/master/NMSSH/NMSSHSession.m#L710
I received a report that entries using unrecognized algorithms are getting removed: https://gitlab.com/gnachman/iterm2/issues/4250
I confirmed this by creating a known_hosts file like this (personal data removed):
foo.bar.com ssh-rsa *redacted* example.com ecdsa-sha2-nistp256 *redacted*
I then added a new host, and the ecdsa-sha2-nistp256 entry was removed. Entries whose algorithm field is ssh-rsa do not get clobbered.
ssh-rsa
The text was updated successfully, but these errors were encountered:
Test more unrecognised known_host entries.
a9702b1
Relates to libssh2/libssh2#85.
What version of libssh2 are you linking against? This was a known issue, but it was fixed 3 years ago. The fix first appeared in 1.5.0.
I've added some more test cases based on your specific example, but they all pass.
Sorry, something went wrong.
Sorry about that! I will make sure to update to the most recent version.
No branches or pull requests
I use this code to add an entry to known_hosts:
https://github.com/NMSSH/NMSSH/blob/master/NMSSH/NMSSHSession.m#L710
I received a report that entries using unrecognized algorithms are getting removed:
https://gitlab.com/gnachman/iterm2/issues/4250
I confirmed this by creating a known_hosts file like this (personal data removed):
I then added a new host, and the ecdsa-sha2-nistp256 entry was removed. Entries whose algorithm field is
ssh-rsa
do not get clobbered.The text was updated successfully, but these errors were encountered: