1、服务密码或ip变更导致的错误
[root@hadoop03 ~]# ssh hadoop01
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:adqH907amvyYtAc7evqtYRcH/9Aovmz3sgY9Go6dmho.
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:2
ECDSA host key for hadoop01 has changed and you have requested strict checking.
Host key verification failed.
解决方法:
编辑文件/root/.ssh/known_hosts ,注释掉hadoop01行,保存退出。重新执行 ssh hadoop01命令,按提示录入密码即可。