Remove Key from SSH known_hosts File

Tags: April 18, 2012 1:55 PM

Are you getting message like shown below while trying to connect using SSH?

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
bb:cc:6d:a8:a9:cb:47:28:ea:1d:90:5a:aa:zz:yy:xx.
Please contact your system administrator.
Add correct host key in /home/astadev/.ssh/known_hosts to get rid of this message.
Offending key in /home/astadev/.ssh/known_hosts:68
RSA host key for 106.x.y.z has changed and you have requested strict checking.
Host key verification failed.

Solution

To getting rid of the message is easy, just issue simple command below. Remember to replace 127.0.0.1 with your server address.
$ ssh-keygen -R 127.0.0.1

Share on Facebook Twitter

0 comments:

Post a Comment