开发者社区 问答 正文

linux ssh无法登陆

已解决

登陆log:
ssh -vvv 47.107.128.105
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug2: resolving "47.107.128.105" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 47.107.128.105 [47.107.128.105] port 22.
debug1: connect to address 47.107.128.105 port 22: Connection timed out
ssh: connect to host 47.107.128.105 port 22: Connection timed out
云主机sshd状态
云主机自己可以登陆:
云主机的安全组规则

展开
收起
1972341142634405 2018-11-02 17:02:59 1295 分享 版权
2 条回答
写回答
取消 提交回答
  • 元始天尊座下首席皮皮虾
    采纳回答
     刚测试了下,从广东电信这边是可以链接  47.107.128.105 22端口的。 证明链路是通的,应该是你的网络到这个IP之间被阻断了,比如你的电脑防火墙拒绝了, 也可能是你的路由器,交换机这个级别阻断了。

     你直接  telnet 47.107.128.105 22  看能连接上不,如果可以,那就是你的ssh客户端有问题了。  如果对你有用,请采纳
    2018-11-02 17:06:42
    赞同 展开评论
  • 主机是可以ping通的
    ping 47.107.128.105    
    PING 47.107.128.105 (47.107.128.105) 56(84) bytes of data.
    64 bytes from 47.107.128.105: icmp_seq=1 ttl=51 time=6.74 ms
    64 bytes from 47.107.128.105: icmp_seq=2 ttl=51 time=7.15 ms
    64 bytes from 47.107.128.105: icmp_seq=3 ttl=51 time=4.85 ms
    入站规则也设置了,ssh就是连接不了@@ @

    原来是自己这边网络给阻挡了,@ @
    2018-11-02 17:07:17
    赞同 展开评论