关于ssh: connect to host master port 22: Connection timed out问题的总结
来源:互联网 发布:怎样在淘宝上做供货商 编辑:程序博客网 时间:2024/05/20 16:44
最近在cnetos6.5系统上重新配置了hadoop-2.2.0,在配置集群的ssh无秘钥登录时,经常能碰到ssh: connect to host master port 22: Connection timed out的问题。现在对该问题做一下可能出现的问题的总结和解决办法:
一.IP配置错误。
当出现上述错误时,首先检查网络连通情况,Ping一下远程登录的目标主机,如果ping不通,很有可能是/etc/hosts文件中的IP地址映射出现问题,需要仔细检查名称和IP地址的映射关系。
二.防火墙问题。
当发现IP配置没有错误时,我们需要检查端口是否被防火墙禁用了,使用sudo service iptables status命令查看防火墙状态,如果出现:
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
2 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
3 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
我们可以看到,ssh登陆的默认端口22被禁止了。
我们使用sudo chkconfig iptables off来永久关闭防火墙,如果使用sudo service iptables stop将临时关闭防火墙,会在下一次关机重启后重置,建议使用第一种。
- 关于ssh: connect to host master port 22: Connection timed out问题的总结
- 关于ssh: connect to host master port 22: Connection timed out问题的总结
- 大数据【关于ssh: connect to host master port 22: Connection timed out问题的总结】
- 【解决】ssh: connect to host slave port 22: Connection timed out的问题
- hadoop搭建之ssh:connect to host XXXX port 22:Connection timed out!【问题】
- localhost: ssh: connect to host localhost port 22: Connection timed out
- ssh: connect to host IPADDR port 22: Connection timed out on ubuntu
- ubuntu 14.04下scp传输文件出现ssh: connect to host ***port 22: Connection timed out
- github连接报"ssh: connect to host github.com port 22: Connection timed out"错误
- 解决ssh-connect-to-host-github-com-port-22-connection-timed-out
- 解决ssh: connect to host 107.21.95.3 port 22: Connection timed out
- ssh: connect to host github.com port 22: Connection timed out
- 解决ssh-connect-to-host-github-com-port-22-connection-timed-out
- connect to host ssh.github.com port 22: Connection timed out解决方法
- 解决ssh: connect to host gitlab.com port 22: Connection timed out
- ssh: connect to host master port 22: Connection refused
- git clone时出现ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from
- GIT报错:connect to host github.com port 22: Connection timed out
- Win7窗口最大化和最小化快捷键
- ThreadLocal内部机制及使用方法
- iOS UI篇 - plist文件字典转模型
- Android开发错误集锦
- Agile Java(第一章)
- 关于ssh: connect to host master port 22: Connection timed out问题的总结
- 15个最容易得罪人的行为,却常常被我们忽略
- BeanPropertyRowMapper使用注意事项
- 防止c程序运行一闪而过
- android开发书籍推荐 重零开始
- 二维码生成工厂
- java程序运行时,数据的存储地!
- 线程的sleep()方法和yield()方法的区别
- 近期系统更新出现的问题记录