ssh时间长自动断开的解决办法

  1. 编辑以下文件,不存在就创建一个。

    vi ~/.ssh/config
  2. 输入内容,设置一分钟发送一次心跳

    Host *
     ServerAliveInterval = 60

至此,问题得以解决。

Last modification:June 6, 2022
If you think my article is useful to you, please feel free to appreciate