scp传输报错解决
来源:互联网 发布:sql 批量replace 编辑:程序博客网 时间:2024/05/18 22:43
1.在ip为172.16.26.1的主机使用scp传输数据时发生下面的报错 (警告:远程主机标识已经更改!)
[root@localhost /]# scp linux.txt 172.16.26.2:/
@ 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
5b:4e:bf:fa:a0:98:c2:a6:96:ab:1e:d2:3d:3e:59:b6.
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 172.16.26.2 has changed and you have requested strict checking.
Host key verification failed.
lost connection
2.ssh了一下试试 发现了同样的报错
[root@localhost /]# ssh 172.16.26.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
5b:4e:bf:fa:a0:98:c2:a6:96:ab:1e:d2:3d:3e:59:b6.
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 172.16.26.2 has changed and you have requested strict checking.
Host key verification failed.
3.用172.16.26.2这台主机 scp时是正常的没有出现错误,一定是172.16.26.1上出现了问题
4.查看了一下家目录下的.ssh/known_hosts
删除.ssh/known_hosts 中关于远程主机的那部分
重新ssh 远程主机ip
连接成功
可能的原因是在以前曾有172.16.26.2的其他主机ssh过,所以导致远程主机标识不同了,才报的错
不知理解的是否正确,请多多指教
- scp传输报错解决
- scp传输
- Linux scp 命令报错
- 遇到 scp报错:not a regular file 解决 so easy!!!
- scp拷贝文件报错-bash: scp: command not found
- scp 无密码传输
- Ubuntu scp 传输文件
- SCP 传输不需要命令
- Scp远程传输
- SCP传输数据
- scp无密码传输
- 加速scp传输速度
- SCP免密码传输
- linux scp限速传输
- 利用scp传输文件
- scp免密码传输
- Ubuntu scp 传输文件
- 用scp传输文件
- 让SpringMVC支持可版本管理的Restful接口
- 如何检测内存泄露,如何进行内存优化? 【面试题】
- APP启动时白屏/黑屏 或者 Activity打开时白屏/黑屏
- 系统联调?
- Intel Parameter-Framework简介
- scp传输报错解决
- C++的命名空间
- 什么是docker
- LAMP是什么
- 深入理解Java虚拟机(5)-.Class文件格式(四)
- C Looooops POJ
- 《gradle 用户指南》中文版 第5章 Gradle控制台
- 【排序算法】:希尔排序
- CentOS 7配置MySQL