配置
#编辑文件
vi /etc/ssh/sshd_config
#1800秒内(30分钟)终端没有操作,则断开ssh连接
ClientAliveInterval=1800
ClientAliveCountMax=0
#重启生效
service sshd restart
参考
https://blog.csdn.net/qq120631157/article/details/131340926
#编辑文件
vi /etc/ssh/sshd_config
#1800秒内(30分钟)终端没有操作,则断开ssh连接
ClientAliveInterval=1800
ClientAliveCountMax=0
#重启生效
service sshd restart
https://blog.csdn.net/qq120631157/article/details/131340926