PDA

View Full Version : Fix: REMOTE HOST IDENTIFICATION HAS CHANGED!



Fli
05-23-2014, 09:01 AM
How to fix this error when trying to ssh some server?


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
@ 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
*****:a8:db:06:01:88:40:d8:6a:ff:59:*****.
Please contact your system administrator.
Add correct host key in /home/*/.ssh/known_hosts to get rid of this message.
Offending key in /home/*/.ssh/known_hosts:*
RSA host key for * has changed and you have requested strict checking.
Host key verification failed.

It can be fixed by removing RSA host key line from your known_hosts file, in my case it is /home/*/.ssh/known_hosts as seen above. (replace asterisk by your username). So i open that file and find the server IP im trying to connect and delete that line + save. Then connect again and new RSA key is added.