手机版
你好,游客 登录 注册
背景:
阅读新闻

Linux使用SCP拷贝文件

[日期:2012-12-17] 来源:Linux社区  作者:haierxing [字体:大 中 小]

前几天Linux服务器出现故障,重新安装的Linux系统。使用SCP拷贝文件提示出现错误。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

c9:f8:de:4e:a1:2a:9e:26:**:**:**:**:**:**:**:**.

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 192.168.**.** has changed and you have requested strict checking.

Host key verification failed.

lost connection

------------------------------------------------------------------

解决方法:

vi 打开/root/.ssh/known_hosts

会找到曾经匹配使用SCP传送文件的key

然后选择删除对应的IP地址行,重新连接SCP就行了,又会提醒保存。

The authenticity of host '192.168**(********)' can't be established.

RSA key fingerprint is c9:f8:de:4e:a1:2a:9e:**************

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.**.**' (RSA) to the list of known hosts.

root@192.168.**.**'s password:

就OK了。

linux
相关资讯       SCP  Linux scp  Linux拷贝文件 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款