ssh远程出错Add correct host key in /home/xxx/.ssh/known_hosts to get rid of this message
原创
©著作权归作者所有:来自51CTO博客作者缥缈峰虚竹的原创作品,请联系作者获取转载授权,否则将追究法律责任
ssh远程出错
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
SHA256:FZD5y9aXKZMzz6cVeqGc5/5DdaKTetvWpZmClzyRDe4.
Please contact your system administrator.
Add correct host key in /home/xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/xxx/.ssh/known_hosts:4
remove with:
ssh-keygen -f "/home/xxx/.ssh/known_hosts" -R "192.168.1.138"
ECDSA host key for 192.168.1.138 has changed and you have requested strict checking.
Host key verification failed.
解决办法
根据提示进入
/home/xxx/.ssh/known_hosts
把known_hosts重命名或者删除。