报错现象:
[root@three ~]# scp jdk-8u161-linux-x64.tar.gz root@192.168.242.134:/root
……
It is also possible that a host key has just been changed.
……
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:4
ECDSA host key for 192.168.242.134 has changed and you have requested strict checking.
Host key verification failed.
lost connection
解决:
解决:# ssh-keygen -R "192.168.24.14"
ps:192.168.24.14是你要远程的ip