WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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/你的电脑名称/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/你的电脑名称/.ssh/known_hosts:5
ECDSA host key for 你的IP地址 has changed and you have requested strict checking.
Host key verification failed.

错误原因:

  远程主机标志已更改,之前 ssh 连接的时候输入过 yes,服务器主机信息保存在 .ssh\known_hosts 文件里面,更改之后需要手动删除这条记录

解决方法:

Add correct host key in /Users/你的电脑名称/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/你的电脑名称/.ssh/known_hosts:5

  根据提示已经显示了文件所在的路径,复制打开就行,错误行在 .ssh/known_hosts 的第五行,那么就把第五行附近服务器相关的信息全部删除保存即可解决

你可能感兴趣的:(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)