scp --之--Host key verification failed 错误

时间:2021-11-16 10:55:11

此方法,可以解决问题,已验证

转自http://hi.baidu.com/buzhizhe/item/b7e954f2fd99dcde6325d2ab

scp错误:Host key verification failed

SSH连接的时候Host key verification failed.[root@cache001 swftools-0.9.0]# ssh 192.168.1.90
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
05:25:84:ea:dd:92:8d:80:ce:ad:5b:79:58:fe:c9:42.
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:10
RSA host key for 192.168.1.90 has changed and you have requested strict checking.
Host key verification failed.
解决方法:vi ~/.ssh/known_hosts

进入此目录,删除192.168.1.90的相关rsa的信息即可.或者删除这个文件
cd ~/.ssh
/rm known_hosts