ssh – remote host identification has changed

A very alarming ssh warning and it’s solution.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Solution: ssh-keygen -R <host>, in my case ssh-keygen -R FreeBSD.

-R hostname Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts (see the -H option above).


Leave a comment

Discover more from /root

Subscribe now to keep reading and get access to the full archive.

Continue reading