关于ssh: connect to host master port 22: Connection timed out问题的总结
来源:互联网 发布:连接香港网络 编辑:程序博客网 时间:2024/06/11 23:00
最近在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将临时
关闭防火墙,会在下一次关机重启后重置,建议使用第一种。
转自:http://blog.csdn.net/u010842515/article/details/52484404
- 关于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
- fragment 中 切换主题
- 更改MySql数据库存放路径
- 生成子集
- 矩阵乘法
- window.location.href("url") 无法在chrome和Firefoxz中使用
- 关于ssh: connect to host master port 22: Connection timed out问题的总结
- web.xml中url-pattern匹配规则
- Git——Day1(仓库管理)
- UTM-30lx Communication Protocol Specification For SCIP2.0 Standard
- NOIOpenjudge 1.13--08特殊日历计算
- 红黑树学习总结——插入
- jsp+servlet四、El表达式以及C标签
- Android开发——BroadcastReceiver知识总结
- SpringBoot学习 (二)— 依赖注入