【问题标题】:Unsuccessful connection on ssh to the subordinate nodes of a cluster在 ssh 上连接到集群的从属节点不成功
【发布时间】:2013-05-31 17:45:26
【问题描述】:

通过以下命令在集群的从属节点上启动服务:

hadoop@one:/export/hadoop-1.0.1/bin$. ./start-all.sh

不是我第一次收到结果

starting namenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--namenode-one.out
192.168.1.10: starting datanode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-datanode-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out
192.168.1.5: starting secondarynamenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-secondarynamenode-one.out
starting jobtracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--jobtracker-one.out
192.168.1.10: starting tasktracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out

如何解决以下错误:

ssh: connect to host port 22: Connection timed out

hadoop@one: /export/hadoop-1.0.1/bin$ ssh -vvv 192.168.1.10
Sun_SSH_1.5, SSH protocols 1.5/2.0, OpenSSL 0x1000004f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0 
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22
debug1: connect to address 192.168.1.10 port 22: Connection timed out
ssh: connect to host 192.168.1.10 port 22: Connection timed out

如何纠正错误?

【问题讨论】:

  • 欢迎来到 SO!我已经编辑了你的帖子,让你的问题更清楚。
  • +1 @Brian。应该这样对待新手
  • @Tariq - 非常感谢 +1,谢谢!

标签: linux ssh connection out timed


【解决方案1】:

你的机器上运行 sshd 守护进程吗?您的操作系统可能带有 ssh,但要启动 sshd 守护程序,您需要完全安装 ssh。我的意思是:

ssh :我们用来连接远程机器的命令——客户端。

sshd : 在服务器上运行并允许客户端 连接到此服务器。

另外,请确保端口 22 没有问题。如果您仍然遇到一些问题,请尝试使用 -v 开关进行 ssh 以获得完整的跟踪。

ssh -v myhost2

你可以去here获取ssh的详细解释。

【讨论】:

  • hadoop@one: /export/hadoop-1.0.1/bin$ ssh -v 192.168.1.10 Sun_SSH_1.5, SSH 协议 1.5/2.0, OpenSSL 0x1000004f debug1: 读取配置数据 /etc/ssh /ssh_config debug1:Rhosts 身份验证已禁用,原始端口将不受信任。 debug1:ssh_connect:needpriv 0 debug1:连接到 192.168.1.10 [192.168.1.10] 端口 22 debug1:连接到地址 192.168.1.10 端口 22:连接超时 ssh:连接到主机 192.168.1.10 端口 22:连接超时 @Tariq
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-21
  • 2021-07-21
  • 2016-07-11
  • 2018-03-31
  • 2021-12-04
  • 2014-04-25
相关资源
最近更新 更多