跳到主要内容

ssh自动断开

客户端问题:

编辑~/.ssh/config文件,

添加ServerAliveInterval和ServerAliveCountMax参数。

HOST *
ServerAliveInterval 25
ServerAliveCountMax 3