ssh: connect to host hadoop0 port 22: no route to host问题出现

问题关键在于no route to host

1.首先考虑防火墙是否关闭

在root模式下systemctl stop firewalld.service  #关闭防火墙

      systemctl disabled firewalld.service  #开机禁用防火墙

2.大概率hosts文件ip设置错误

root模式下使用vi /etc/hosts

进入在末尾一行点击"i"进入编辑模式,输入虚拟机ip地址和名称(例如:root@hadoop0名称就是hadoop0)

输入完之后点击"esc"之后输入:wq保存,无法保存就输入:wq!强制保存。

 

 

参考并补充于hadoop问题:ssh: connect to host hadoop port 22: Connection timed out_hadoop ssh连接超时‘_TzBugs的博客-CSDN博客侵删

posted @ 2023-03-17 09:35  提瓦特煎蛋  阅读(1207)  评论(0)    收藏  举报