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
e1:1f:9d:ab:58:a8:61:22:b0:b3:18:f1:93:55:cd:57.
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:1
  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 47.94.248.118
ECDSA host key for 47.94.248.118 has changed and you have requested strict checking.

Host key verification failed.

scp  是基于ssh传输协议,一般出现这种情况都是,目标机器重装了系统所致,所以要把本地是ssh存的公钥删除,然后就能重新建立连接了 

删除 /root/.ssh/known_hosts文件的内容即可

猜你喜欢

转载自blog.csdn.net/qq_38570571/article/details/79914732