$ ssh root@hostname.example.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
f3:a9:fc:81:1e:24:09:94:5a:ed:cf:66:2a:3f:98:94.
Please contact your system administrator.
Add correct host key in /home/username/.ssh/known_hosts to get rid of this message.
Offending key in /home/username/.ssh/known_hosts:117
RSA host key for hostname.example.com has changed and you have requested strict checking.
Host key verification failed.
I regularly connect to systems which get reinstalled frequently and receive the warning above, so this option to the ssh-keygen command is particularly useful:
ssh-keygen -R hostname.example.com
It will remove the entry for that hostname in the file ~/.ssh/known_hosts


