首页 > 代码库 > scp 传输文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
scp 传输文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
scp /home/oracle/dump/expdp_torc_gsp_20160914_*.dmp oracle@192.168.1.57:/data/dump
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
f5:0a:e2:80:47:e4:c8:9b:b9:96:19:e4:a4:0f:de:b3.
Please contact your system administrator.
Add correct host key in /home/oracle/.sshown_hosts to get rid of this message.
Offending key in /home/oracle/.sshown_hosts:3
RSA host key for 192.168.1.57 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(600) [sender=3.0.6]
原因是系统有改变,导致加密的密钥改变,因此本地保存的密钥失效;
需要重新保存密钥在 ~/.ssh/known_hosts 中。
解决方法:
删除 ~/.ssh/known_hosts 文件中指定ip的密钥即可。
本文出自 “boyhack” 博客,请务必保留此出处http://461205160.blog.51cto.com/274918/1852759
scp 传输文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED