Comment by nnnnni
11 years ago
...and then if the fingerprint changes, you get something like this:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@ WARNING! THIS ADDRESS MAY BE DOING SOMETHING NASTY!! @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
... and then you do rm .ssh/known_hosts and try again :P
ssh-keygen -f ~/.ssh/known_hosts -R 123.45.67.89
If you get past the terrifying warning, it even gives you the command to copy and paste. You don't even have to type it!
You have probably just saved me.. minutes of time over the course of a year!
But seriously thanks, I was going into the known_hosts file and manually deleting the offending line :)