hadoop ssh 问题WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

0.0.0.0: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
0.0.0.0: @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
0.0.0.0: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
0.0.0.0: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
0.0.0.0: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
0.0.0.0: It is also possible that a host key has just been changed.
0.0.0.0: The fingerprint for the ECDSA key sent by the remote host is
0.0.0.0: b3:76:18:e0:c8:b1:39:32:8a:58:91:45:53:89:fd:63.
0.0.0.0: Please contact your system administrator.
0.0.0.0: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
0.0.0.0: Offending ECDSA key in /root/.ssh/known_hosts:2
0.0.0.0:   remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 0.0.0.0
0.0.0.0: ECDSA host key for 0.0.0.0 has changed and you have requested strict checking.
0.0.0.0: Host key verification failed.
stopping yarn daemons
stopping resourcemanager
localhost: no nodemanager to stop
no proxyserver to stop
可以看出ssh主机没有连接成功

root@hett-OptiPlex-7040:/usr/local/src/hadoop# ssh-keygen -R "0.0.0.0"
# Host 0.0.0.0 found: line 2 type ECDSA
/root/.ssh/known_hosts updated.

查询主机对应的秘钥


ssh-keygen -F 0.0.0.0

原文地址:https://www.cnblogs.com/youran-he/p/8249911.html