Bug#212518: /usr/bin/ssh: Add correct host key message unclear
Package: ssh
Version: 1:3.6.1p2-5
Severity: minor
File: /usr/bin/ssh
Tags: upstream
When we get this message
The fingerprint for the RSA key sent by the remote host is
78:eb:0f.....
Please contact your system administrator.
Add correct host key in /home/jidanni/.ssh/known_hosts to get rid of this message.
Offending key in /home/jidanni/.ssh/known_hosts:9
The "Add correct host key..." is not clear enough on what needs to be
done for non-expert users. He does man ssh-add, but that isn't it.
He can't just edit known_hosts because the format is obviously
different than what is shown on that line above.
Wait, deep in man sshd, we see
Note that the lines in these files are typically hundreds of characters long, and you
definitely don't want to type in the host keys by hand. Rather, generate them by a
script or by taking /etc/ssh/ssh_host_key.pub and adding the host names at the front.
wonderful :-(
Reply to: