Remove ssh key for new host with same IP
Problem
[dev@shrub kraken-ui]$ ssh root@10.65.11.212
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
24:46:0f:df:d3:03:28:6b:b4:ac:56:25:4d:a8:6a:6f.
Please contact your system administrator.
Add correct host key in /home/dev/.ssh/known_hosts to get rid of this message.
Offending key in /home/dev/.ssh/known_hosts:11
RSA host key for 10.65.11.212 has changed and you have requested strict checking.
Host key verification failed.
[dev@shrub kraken-ui]$ ssh-keygen -R 10.65.11.212
/home/dev/.ssh/known_hosts updated.
Original contents retained as /home/dev/.ssh/known_hosts.old
Solution
$ ssh-keygen -R *ip_address_or_hostname*
Recent Comments