使用scp时有时会遇到这样的报错
#scp -rp 10.0.0.1:/data/www/index.html /data/www/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
71:fh:fc:e1:a8:5g:ba:fc:y6:4a:dd:1c:51:c5:7f:4a.
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:4
RSA host key for 10.0.0.1 has changed and you have requested strict checking.
Host key verification failed.
这是由于10.0.0.1的RSA host key发生了变化。
解决方法将本机 /root/.ssh/known_hosts文件内的10.0.0.1的那一行删掉即可。
转载于:https://blog.51cto.com/yjw1983/471486