【发布时间】:2012-01-29 01:22:14
【问题描述】:
我无法通过 ssh 和 rysnc 连接到远程系统。它不断给出这个错误信息:
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
a3:8f:7c:07:c9:12:d8:aa:cd:c2:ba:b3:27:68:bc:c2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:8
RSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.8]
我已经从/home/user/.ssh 中删除了authorized_keys 文件。
【问题讨论】:
-
另外请检查rsync错误信息,ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection denied rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error : io.c(601) [sender=3.0.8] 出现无法解释的错误(代码 255)
-
如果它不是生产系统,那么你可以执行 truncate -s 0 /root/.ssh/known_hosts