执行ssh-copy-id遇到
/usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
ERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
ERROR: It is also possible that a host key has just been changed.
ERROR: The fingerprint for the ECDSA key sent by the remote host is
ERROR: SHA256:k991BvkelkcMfK+egNtdfkOvP5q/3NavwSzTNd+nlDw.
ERROR: Please contact your system administrator.
ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
ERROR: Offending ECDSA key in /root/.ssh/known_hosts:139
ERROR: ECDSA host key for IP has changed and you have requested strict checking.
ERROR: Host key verification failed.
解决方案
清除当前机器里关于远程服务器的缓存和公钥信息
ssh-keygen -R "你的远程服务器ip地址"
标签:免密,登录,id,host,ssh,key,ERROR,ECDSA
From: https://www.cnblogs.com/comecc/p/17026810.html