(转)WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

[root@bak1 bak]# scp gwsyj.sql.gz root@192.168.21.65:/data/dbdata/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
ca:f3:fa:94:3f:49:e4:1b:58:2d:b1:61:27:1e:a7:88.
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:15
RSA host key for 192.168.21.65 has changed and you have requested strict checking.
Host key verification failed.
lost connection

网上查资料,解决办法步骤如下:

[root@bak1 .ssh]# cd ~/.ssh
[root@bak1 .ssh]# ll
total 88
-rw-r--r--. 1 root root  6368 Mar 28 10:24 known_hosts


[root@bak1 .ssh]# vi known_hosts 
删除 known_hosts里面关于192.168.21.65服务器的信息,保存退出即可。

192.168.21.65 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA67AsGXjWnZfduJicbyJQPqTCUGSF+SSj79N/vaqgR5PwEoOExixoOOiBk/eUw8Ok+/xa5s09F9UCJ9bmwNJwrUl29zupW6mw2+oVhE6hqYWGC0EMEEdLLvaVBL5VqTb+aQaIph5i7cDkZePYA7LIpH5j3IAKTJwgzJeem3H8L9c9pkY9a9+xYnzI+Hy1uT7xvacF00/Ca+jjKmR0lRd9OU9ArK6oYuxBm70qCAlpJQmdKkGWc5Q7Io6dBquKieq6cRI4wK2DGna2bI6ptGJry9beu2jooPQUqByIi4pnz1AslznK94dS2cGEgQS3N4Y0mUKImXCxjhHu7X4vdsYF/Q==

 
posted @ 2015-08-12 11:18  孤光一点莹  阅读(193)  评论(0编辑  收藏  举报