你的位置:首页 > 操作系统

[操作系统]linux ssh连接不了其它主机


  比如 ssh 10.0.1.23,出现以下情况:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
d8:6a:2a:5a:22:f6:cc:ae:6a:01:1b:22:59:92:a9:7d.
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:16
RSA host key for 10.0.1.23 has changed and you have requested strict checking.
Host key verification failed.

解决方法:ssh-keygen -R 10.0.1.23

 

注:ssh-keygen用法参见http://linux.chinaunix.net/techdoc/beginner/2010/01/12/1153509.shtml