1. vim /etc/ssh/sshd_config
TCPKeepAlive yes #保持TCP连接
ClientAliveCountMax 60 #单位为分钟
2. /etc/init.d/sshd restart
reffer link: http://blog.chinaunix.net/uid-8473611-id-3069386.html
1. vim /etc/ssh/sshd_config
TCPKeepAlive yes #保持TCP连接
ClientAliveCountMax 60 #单位为分钟
2. /etc/init.d/sshd restart
reffer link: http://blog.chinaunix.net/uid-8473611-id-3069386.html
转载于:https://my.oschina.net/joryqiao/blog/898988