今天用终端ssh 连接 CentOS时提示 以下错误
sh-3.2# ssh root@192.168.1.118
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
f1:02:a1:72:c2:fe:24:60:6b:47:36:19:f4:b5:34:51.
Please contact your system administrator.
Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /var/root/.ssh/known_hosts:8
RSA host key for 192.168.1.118 has changed and you have requested strict checking.
Host key verification failed.
按照网上教程删除 known_hosts文件 但是发现我的系统的根本没有这个文件,最后终于搜到一篇文章 http://my.oschina.net/linbaoji/blog/135668 按照文章里写的解决方法
解决方法:ssh-keygen -R 192.168.1.203(你远程服务器的IP) 完美解决。
共勉之
原文转自:http://my.oschina.net/linbaoji/blog/135668