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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
bf:79:c0:8c:28:6a:f6:2c:76:73:8b:ad:86:dd:3a:29.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
ECDSA host key for 10.192.32.110 has changed and you have requested strict checking.
Host key verification failed.
lost connection

在Linux里用scp 远程目录 root@ip:本地文件时,会报上面的错误

解决方法很简单:

用指令 vim ~/.ssh/known_hosts

将里面要发送到的远程服务器的ip的那段删掉.(一般是有两行)

具体删除步骤是在文本的命令模式下

将光标移动到当前行,点击两次dd,删除后保存

重新scp发送就ok了!

猜你喜欢

转载自blog.csdn.net/shen_xbo/article/details/82657532
今日推荐