V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
mikefy
V2EX  ›  VPS

搬瓦工 openvz 开启 bbr 后顺便加速了一下 ssh 端口, 然后现在 ssh 连接 30 秒就断, 而且每次都算是从 10.0.0.2 登录的

  •  
  •   mikefy · 2017-12-04 12:43:32 +08:00 · 401 次点击
    这是一个创建于 2336 天前的主题,其中的信息可能已经有所发展或是发生改变。

    就问下怎么解决 30 秒就断这个问题. 有在 xshell 中设置 10 秒发一次活动状态消息...但是手机端的 juice 不行呀,能从服务器端解决这个吗. TMOUT=0 没用

    2 条回复    2017-12-05 22:38:25 +08:00
    sunflyer
        1
    sunflyer  
       2017-12-05 17:27:38 +08:00
    sshd_config 加一段

    ClientAliveInterval 20
    ClientAliveCountMax 6
    FengkuiChan
        2
    FengkuiChan  
       2017-12-05 22:38:25 +08:00 via Android
    加速 ssh 干嘛?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3012 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:34 · PVG 21:34 · LAX 06:34 · JFK 09:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.