【问题标题】:SSH connection keep disconnecting when idleSSH连接在空闲时不断断开
【发布时间】:2021-07-15 13:31:29
【问题描述】:

当 ssh 连接空闲时,我得到client_loop: send disconnect: Boken pipe 我该怎么办?

【问题讨论】:

    标签: ssh disconnect disconnected-session


    【解决方案1】:

    在本地计算机中创建/编辑文件 ~/.ssh/config。 在文件中粘贴以下内容并保存。

    Host *
     UseKeychain yes
     AddKeysToAgent yes
     ForwardAgent yes
     ServerAliveInterval 60
     ServerAliveCountMax 2
    

    这会将keep-alive发送到连接的服务器,并且不会因为不活动而断开连接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-28
      • 1970-01-01
      • 2016-08-26
      • 2014-09-12
      • 2012-10-20
      • 1970-01-01
      • 2020-11-30
      相关资源
      最近更新 更多