我無法ssh和rysnc到遠程系統。它不斷給這個錯誤信息:Ubuntu的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
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:連接到主機xxx.xxx.xxx.xxx端口22:連接被拒絕 rsync:連接意外關閉(目前收到0字節)[發件人] rsync錯誤:無法解釋的錯誤(代碼255)在io.c(601)[sender = 3.0.8] – thiyagu114 2011-12-28 09:31:21
如果它不是生產系統,那麼你可以做truncate -s 0 /root/.ssh/known_hosts – AMB 2015-07-09 16:11:44
https://in.godaddy.com/help/ssh-login-warning-remote-host-identification-has-changed-12161 – NandhaKumar 2017-12-15 12:44:30