当前位置: 代码迷 >> 综合 >> hadoop问题:ssh: connect to host hadoop port 22: Connection timed out
  详细解决方案

hadoop问题:ssh: connect to host hadoop port 22: Connection timed out

热度:95   发布时间:2024-02-06 03:03:13.0

绝大部分原因是ip地址没有设置好。

1.查看防火墙是不是关闭:

 systemctl status firewalld

永久关闭防火墙:

systemctl disable firewalld

2.假如已经可以用xshell等工具连接虚拟机,查看/etc/hosts 目录下的ip地址是否和在/etc/hostname中配置的一样

本人是/etc/hosts中ip地址不一样的问题。

 

  相关解决方案