Comment 1 for bug 424053

Revision history for this message
Bryce Harrington (bryce) wrote :

I'm moving this from wishlist to legitimate bug because it used to be that the file contained hostnames, so even if you didn't notice the line number you could grep for the machine or its ip. Now this info appears to be hashed so the line number is the only way to know.

It would be nice to have some mechanism to update the known_hosts file when a server has changed identities other than having to hand edit this file. For many users the list of hashed data is going to look like line noise.

The error message also says "you have requested strict checking", however this is misleading - *you* didn't request it, it's the default setting (at least, on Ubuntu).

I think the friendliest way to handle this would be something like:

 An RSA host key for this server was not found in /home/scott/.ssh/known_hosts!
 To fix this, run the command `ssh-recognize-host [hostname]`, or turn off StrictHostKeyChecking to disable host checking completely.

Add correct host key in /home/scott/.ssh/known_hosts to get rid of this message.