V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zxCoder
V2EX  ›  问与答

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

  •  
  •   zxCoder · Oct 6, 2021 · 2543 views
    This topic created in 1665 days ago, the information mentioned may be changed or developed.

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

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

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


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

    Supplement 1  ·  Oct 7, 2021

    已解决。。。

    lwh0328
        1
    lwh0328  
       Oct 6, 2021
    防火墙呢
    zxCoder
        2
    zxCoder  
    OP
       Oct 6, 2021
    @lwh0328 服务器的防火墙?还是我电脑的防火墙
    Kamitora
        3
    Kamitora  
       Oct 6, 2021
    ssh -vvv YOURHOST
    zxCoder
        4
    zxCoder  
    OP
       Oct 6, 2021
    @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  
       Oct 6, 2021 via Android
    他在墙外,你在墙里?
    zxCoder
        6
    zxCoder  
    OP
       Oct 6, 2021
    @lwh0328
    @Kamitora
    @ddzzhen

    草,我是沙比,忘记这是 10 开头的 ip,我要挂个实验室的 vpn 才能 ssh 上
    czwstc
        7
    czwstc  
       Oct 7, 2021
    找到原因了就 Append 一下吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1025 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 22:09 · PVG 06:09 · LAX 15:09 · JFK 18:09
    ♥ Do have faith in what you're doing.