V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
warcraft1236
V2EX  ›  macOS

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

  •  
  •   warcraft1236 · 2019-03-26 17:59:25 +08:00 · 2794 次点击
    这是一个创建于 1856 天前的主题,其中的信息可能已经有所发展或是发生改变。

    出问题的服务器是阿里云轻量,香港。作为对比的服务器是日本的一个。两台服务器都是 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 什么的根本解决不了问题

    没有思路了,求教

    第 1 条附言  ·  2019-03-28 10:39:37 +08:00
    telnet 22 端口是通的,很奇怪
    9 条回复    2022-11-23 13:49:13 +08:00
    zro
        1
    zro  
       2019-03-26 18:31:07 +08:00
    移动宽带基本全靠缓存,能直连就不错了。。
    sujin190
        2
    sujin190  
       2019-03-26 18:34:25 +08:00
    被干扰了?阿里云香港 https 也会发了 client-hello 之后就没反应了,连接不会断开,但是啥也不会返回
    betaShine
        3
    betaShine  
       2019-03-26 18:34:41 +08:00 via iPhone
    移动宽带,还是佛系吧……
    warcraft1236
        4
    warcraft1236  
    OP
       2019-03-26 18:51:41 +08:00
    @sujin190 这个干扰是 GFW 还是移动做的呢?
    sujin190
        5
    sujin190  
       2019-03-26 22:33:21 +08:00
    @warcraft1236 #4 感觉都有可能,考虑的话,可以换个端口试试
    JasonQin
        6
    JasonQin  
       2019-03-27 16:52:28 +08:00
    最近我们这边电信 ssh 到阿里云新加坡那边也是 运营商问题的话就暂时无解
    ShikiSuen
        7
    ShikiSuen  
       2021-04-09 20:16:05 +08:00
    广东移动也是一个德性。
    YAFEIML
        8
    YAFEIML  
       2022-11-23 11:16:58 +08:00
    22 年了,搜索过来的,楼主解决了吗,我这也是,联通木问题,移动真就一点办法都没有
    warcraft1236
        9
    warcraft1236  
    OP
       2022-11-23 13:49:13 +08:00
    @YAFEIML 我的解决方案是换联通电信..........
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1264 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:25 · PVG 07:25 · LAX 16:25 · JFK 19:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.