daiqiangbudainiu
V2EX  ›  macOS

移动线路下不能 ssh 连接,求帮忙分析

  •  
  •   daiqiangbudainiu · Mar 26, 2019 · 3835 views
    This topic created in 2606 days ago, the information mentioned may be changed or developed.

    出问题的服务器是阿里云轻量,香港。作为对比的服务器是日本的一个。两台服务器都是 Ubuntu 16.04 本地电脑是 Mac OS X 10.13

    在联通网络下,这两台服务器 ssh 都正常没有问题

    在移动网络下,日本这台正常

    阿里云这台会卡在加密交换这块

    这是 ssh -vv 的输出

    OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/lizhao/.ssh/config debug1: /Users/lizhao/.ssh/config line 79: Applying options for aliyun debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 149.129.67.185 port 22. debug1: Connection established. debug1: identity file /Users/lizhao/.ssh/id_ecdsa type 2 debug1: key_load_public: No such file or directory debug1: identity file /Users/lizhao/.ssh/id_ecdsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.7 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.7 pat OpenSSH* compat 0x04000000 debug1: Authenticating to 149.129.67.185:22 as 'root' debug1: SSH2_MSG_KEXINIT sent

    网上搜到的说改 MTU 什么的根本解决不了问题

    没有思路了,求教

    Supplement 1  ·  Mar 28, 2019
    telnet 22 端口是通的,很奇怪
    9 replies    2022-11-23 13:49:13 +08:00
    zro
        1
    zro  
       Mar 26, 2019
    移动宽带基本全靠缓存,能直连就不错了。。
    sujin190
        2
    sujin190  
       Mar 26, 2019
    被干扰了?阿里云香港 https 也会发了 client-hello 之后就没反应了,连接不会断开,但是啥也不会返回
    betaShine
        3
    betaShine  
       Mar 26, 2019 via iPhone
    移动宽带,还是佛系吧……
    daiqiangbudainiu
        4
    daiqiangbudainiu  
    OP
       Mar 26, 2019
    @sujin190 这个干扰是 GFW 还是移动做的呢?
    sujin190
        5
    sujin190  
       Mar 26, 2019
    @warcraft1236 #4 感觉都有可能,考虑的话,可以换个端口试试
    JasonQin
        6
    JasonQin  
       Mar 27, 2019
    最近我们这边电信 ssh 到阿里云新加坡那边也是 运营商问题的话就暂时无解
    m0yBPjyX3475syS4
        7
    m0yBPjyX3475syS4  
       Apr 9, 2021
    广东移动也是一个德性。
    YAFEIML
        8
    YAFEIML  
       Nov 23, 2022
    22 年了,搜索过来的,楼主解决了吗,我这也是,联通木问题,移动真就一点办法都没有
    daiqiangbudainiu
        9
    daiqiangbudainiu  
    OP
       Nov 23, 2022
    @YAFEIML 我的解决方案是换联通电信..........
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 20:58 · PVG 04:58 · LAX 13:58 · JFK 16:58
    ♥ Do have faith in what you're doing.