# vim /etc/ssh/sshd_config
末尾加入:
ClientAliveInterval 60
ClientAliveCountMax 86400
# service ssh restart
# vim /etc/ssh/sshd_config
末尾加入:
ClientAliveInterval 60
ClientAliveCountMax 86400
# service ssh restart
转载于:https://www.cnblogs.com/MDK-L/p/4519606.html