vim /etc/ssh/sshd_config
找到下面两行:
ClientAliveInterval 0
ClientAliveCountMax 3
改为
ClientAliveInterval 30
ClientAliveCountMax 86400
service sshd restart
即可
vim /etc/ssh/sshd_config
找到下面两行:
ClientAliveInterval 0
ClientAliveCountMax 3
改为
ClientAliveInterval 30
ClientAliveCountMax 86400
service sshd restart
即可