WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

如果你在使用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 a host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

SHA256:7FeeOi0AWDrG83jPymg2XP+XRCLDZMqZNNBtPl62FoA.

Please contact your system administrator.

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

Offending ECDSA key in /Users/lixh/.ssh/known_hosts:6

RSA host key for 192.168.0.107 has changed and you have requested strict checking.

Host key verification failed.

 

说明你曾经连接过这台服务器,只是IP一样服务器却是两台截然不同的机器。如果想让你的ssh能够连接,那我们就要删除本机的“known_hosts”文件,因为我的机器是苹果系统,所以路径是:“/Users/lixh/.ssh/known_hosts”(Linux操作系统路径为:“ /root/.ssh/known_hosts”),删除即可。

 

 

 

转载请附上原文出处链接及本声明
李老师的博客 » WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

发表评论

提供最优质的文章集合

立即查看 了解详情