V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zxCoder
V2EX  ›  问与答

ssh 连不上服务器,怎么检查

  •  
  •   zxCoder · 2021-10-06 09:59:17 +08:00 · 1606 次点击
    这是一个创建于 905 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我 ssh 连不上服务器,但是找了另一个人试了一下,他可以连上去,那应该是我这边的问题?我要怎么检查呢?

    ssh: connect to host xx.xx.xx.xx port 22: Connection timed out

    试过把代理关了,用自己手机流量,都不行


    然后我 ssh 我自己的一台云服务器,又是正常的,我凌乱了,到底是哪的问题

    第 1 条附言  ·  2021-10-07 08:17:14 +08:00

    已解决。。。

    lwh0328
        1
    lwh0328  
       2021-10-06 10:01:42 +08:00
    防火墙呢
    zxCoder
        2
    zxCoder  
    OP
       2021-10-06 10:04:52 +08:00
    @lwh0328 服务器的防火墙?还是我电脑的防火墙
    Kamitora
        3
    Kamitora  
       2021-10-06 10:08:25 +08:00
    ssh -vvv YOURHOST
    zxCoder
        4
    zxCoder  
    OP
       2021-10-06 10:11:49 +08:00
    @Kamitora

    OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
    debug3: Failed to open file:C:/Users/xxx/.ssh/config error:2
    debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
    debug2: resolve_canonicalize: hostname xx.xx.xx.xx is address
    debug2: ssh_connect_direct
    debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
    debug3: finish_connect - ERROR: async io completed with error: 10060, io:000001E961E8F200
    debug1: connect to address xx.xx.xx.xx port 22: Connection timed out
    ssh: connect to host xx.xx.xx.xx port 22: Connection timed out
    ddzzhen
        5
    ddzzhen  
       2021-10-06 10:26:14 +08:00 via Android
    他在墙外,你在墙里?
    zxCoder
        6
    zxCoder  
    OP
       2021-10-06 10:28:50 +08:00
    @lwh0328
    @Kamitora
    @ddzzhen

    草,我是沙比,忘记这是 10 开头的 ip,我要挂个实验室的 vpn 才能 ssh 上
    czwstc
        7
    czwstc  
       2021-10-07 01:32:19 +08:00
    找到原因了就 Append 一下吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2796 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:46 · PVG 22:46 · LAX 07:46 · JFK 10:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.