重庆思庄Oracle、Redhat认证学习论坛

标题: scp传送文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED [打印本页]

作者: denglj    时间: 2022-8-25 13:35
标题: scp传送文件报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
系统:rhel 6.5
问题描述:使用scp传送文件时,出现告警“WARNING:REMOTE HOST IDENTIFICATION HAS CHANGED!”,如下所示:
[root@localhost rmanbak]# scpctl_i1158ubk_1_1.bak root@192.168.133.208:/tmp
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOINGSOMETHING NASTY!
Someone could be eavesdropping on youright now (man-in-the-middle attack)!
It is also possible that the RSA host keyhas just been changed.
The fingerprint for the RSA key sent bythe remote host is
ea:ab:7c:4e:d0:61:6b:f6:cb:80:b7:32:79:d1:e6:e8.
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:2
RSA host key for 192.168.133.208 haschanged and you have requested strict checking.
Host key verification failed.
lost connection
异常原因:
因为主机名为localhost的已经给IP192.168.133.208生成过公匙.然而IP192.168.133.208的主机系统因某种原因被重建过,重建时使用了相同IP地址,那么当scp或者ssh相同IP的新主机时就会出现以上告警.
解决方案:
清除旧公匙信息.
[root@localhost rmanbak]# ssh-keygen-R192.168.133.208
清除后,scp正常传送文件.






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2