错误信息如下
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:T59obCr/etQRSWHBiJxr0dDmq6mwOtzLK/S97BZUm6E.
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:50
ERROR: ECDSA host key for has changed and you have requested strict checking.
ERROR: Host key verification failed.
这是因为免密登录已经存在但公钥不对,这个可以在/root/.ssh/known_hosts线去掉该IP地址公钥,然后再使用ssh-copy-id进行登录。