大数据【关于ssh: connect to host master port 22: Connection timed out问题的总结】
来源:互联网 发布:分类汇总数据复制出来 编辑:程序博客网 时间:2024/05/21 03:20
最近在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
- 用起来不太朴素的朴素贝叶斯及其Python实现
- WinMIPS64指令集实验--简单的IO实例--HelloWorld
- 优秀Java程序员的编程风格
- 期望风险、经验风险、结构风险的关系
- Codeforces Round #362 (Div. 2) E. PLEASE
- 大数据【关于ssh: connect to host master port 22: Connection timed out问题的总结】
- 一篇通俗易懂的讲解OpenGL ES的文章,opengles
- hdu 1811 Rank of Tetris 并查集+拓扑排序
- 写博客对我的意义
- 百度地图API获取发布版SHA1
- 给任务排序,紫书P167Uva10305
- 【算法】排序
- pano2vr教程
- rocketmq双Master集群模式搭建