WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED Solution

来源:互联网 发布:淘宝卖家好评不返现 编辑:程序博客网 时间:2024/05/19 16:34

Problem:

When you connect a server or a computer by SSH,and it occurred that the IP has been recorded.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

SHA256:Ay+ukXVdxLqj2KWcZ4vm0muZPnrAhPb/7zsIjS2N38Q.

Please contact your system administrator.

Add correct host key in /Users/phoenix/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /Users/phoenix/.ssh/known_hosts:8

ECDSA host key for 192.168.1.104 has changed and you have requested strict checking.

Host key verification failed.


SOLUTION:

1.Open the terminal

2.cd

   cd .ssh

   vim known_hosts

   delete the IP

3.DONE!