REMOTE HOST IDENTIFICATION HAS CHANGED

今天在使用scp命令上传文件到远端服务器时报如下错误,(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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
38:26:00:4a:96:cc:43:f4:e8:99:a6:9b:d4:f8:55:e8.
Please contact your system administrator.
Add correct host key in /home/rusky/.ssh/known_hosts to get rid of this message.
Offending key in /home/rusky/.ssh/known_hosts:4
RSA host key for 192.168.1.123 has changed and you have requested strict checking.
Host key verification failed.
lost connection

处理方法:

删除known_hosts文件即可。

rm  ~/.ssh/known_hosts 

posted on 2016-08-19 16:50  遠離塵世の方舟  阅读(222)  评论(0编辑  收藏  举报

导航