码迷,mamicode.com
首页 > 其他好文 > 详细

scp 传输文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

时间:2016-09-14 17:01:05      阅读:224      评论:0      收藏:0      [点我收藏+]

标签: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/.ssh技术分享own_hosts to get rid of this message.
Offending key in /home/oracle/.ssh技术分享own_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

标签:scp 传输文件报错 warning: remote host identification has changed

原文地址:http://461205160.blog.51cto.com/274918/1852759

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!