错误信息:
[root@hadoop103 hadoop-2.7.1]# sbin/start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/module/hadoop-2.7.1/logs/yarn-root-resourcemanager-hadoop103.out
The authenticity of host 'hadoop102 (192.168.0.11)' can't be established.
ECDSA key fingerprint is SHA256:mtkNMx4vH+1OX7g6jChb+R5G19eo8VfJ4jXqAW9u/iM.
ECDSA key fingerprint is MD5:22:41:10:6c:75:45:16:15:30:17:b8:5a:2b:f6:83:c3.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'hadoop104 (192.168.0.13)' can't be established.
ECDSA key fingerprint is SHA256:mtkNMx4vH+1OX7g6jChb+R5G19eo8VfJ4jXqAW9u/iM.
ECDSA key fingerprint is MD5:22:41:10:6c:75:45:16:15:30:17:b8:5a:2b:f6:83:c3.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'hadoop103 (192.168.0.12)' can't be established.
ECDSA key fingerprint is SHA256:mtkNMx4vH+1OX7g6jChb+R5G19eo8VfJ4jXqAW9u/iM.
ECDSA key fingerprint is MD5:22:41:10:6c:75:45:16:15:30:17:b8:5a:2b:f6:83:c3.
Are you sure you want to continue connecting (yes/no)? yes
hadoop102: Warning: Permanently added 'hadoop102' (ECDSA) to the list of known hosts.
hadoop102: starting nodemanager, logging to /opt/module/hadoop-2.7.1/logs/yarn-root-nodemanager-hadoop102.out
hadoop104: Host key verification failed.
hadoop103: Host key verification failed.
[root@hadoop103 hadoop-2.7.1]# jps
2802 ResourceManager
2407 DataNode
3067 Jps
[root@hadoop103 hadoop-2.7.1]# sbin/stop-yarn.sh
stopping yarn daemons
stopping resourcemanager
The authenticity of host 'hadoop104 (192.168.0.13)' can't be established.
ECDSA key fingerprint is SHA256:mtkNMx4vH+1OX7g6jChb+R5G19eo8VfJ4jXqAW9u/iM.
ECDSA key fingerprint is MD5:22:41:10:6c:75:45:16:15:30:17:b8:5a:2b:f6:83:c3.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'hadoop103 (192.168.0.12)' can't be established.
ECDSA key fingerprint is SHA256:mtkNMx4vH+1OX7g6jChb+R5G19eo8VfJ4jXqAW9u/iM.
ECDSA key fingerprint is MD5:22:41:10:6c:75:45:16:15:30:17:b8:5a:2b:f6:83:c3.
Are you sure you want to continue connecting (yes/no)? hadoop102: stopping nodemanager
The authenticity of host 'hadoop103 (192.168.0.12)' can't be established.
Please type 'yes' or 'no': yes
hadoop104: Warning: Permanently added 'hadoop104' (ECDSA) to the list of known hosts.
hadoop104: no nodemanager to stop
hadoop103: Host key verification failed.
no proxyserver to stop
截图:
问题:
ssh登录“The authenticity of host 192.168.0.xxx can’t be established.”的问题
解决方法:
1、
不修改/etc/ssh/ssh_config文件的配置而解决此问题
ssh -o StrictHostKeyChecking=no 192.168.0.xxx
输入密码
2、
ssh连接The authenticity of host can’t be established
修改/etc/ssh/ssh_config文件的配置,以后则不会再出现此问题
最后面添加:
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
解决后的截图: