WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

    今天新装一台CentOS5.5启动后用ubuntu连接不上,提示如下,但在192.168.1.140本地查看网络全部正常,发现不到什么问题,网上也没有相关资料,清空了ubuntu下的.ssh/known_hosts仍然没有解决。

    后来发现在局域网内有同样IP在上网,才想起原来是有IP冲突,后来CentOS换了一个ip地址后没有出现这个问题了。

 

20101220补充:问题依旧i出现,网上的方法是按照提示清空/root/.ssh/known_hosts公钥文件,但我删除对应IP公钥问题就解决了:


[root@ubuntu10] ssh-keygen -R 192.168.1.140

[root@sunshine nginx-1.2.1]# vi /root/.ssh/known_hosts


[root@sunshine nginx-1.2.1]# ssh root@192.168.1.4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
53:73:10:ad:e2:54:be:22:62:af:67:c6:dc:5a:42:f1.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:2
RSA host key for 192.168.1.4 has changed and you have requested strict checking.

Host key verification failed.


参考文献:http://www.ubuntu.com/usn/usn-612-2/

 

版权所有:《太阳花工作室》 => 《WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
本文地址:http://bg.artuion.com/linux/152.html
除非注明,文章均为 《太阳花工作室》 原创,欢迎转载!转载请注明本文地址,谢谢。