Sunday, April 23, 2017

Linux: SSH Remote host identification has changed

Linux: SSH Remote host identification has changed


Error:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
Please contact your system administrator.
Add correct host key in /Users/USER/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/USER/.ssh/known_hosts:52
ECDSA host key for [IP Address] has changed and you have requested strict checking.
Host key verification failed.

Cause:

This can happen if you have created a new server with an IP address you had previously used on a different server.

Solution:

To remove this message, simply open a new terminal window and enter the following command (where IPADDRESS is your server's IP address):

ssh-keygen -R "you server hostname or ip"

or

Remove/move the file known_hosts in .ssh of home directory of that user




No comments:

Post a Comment