开机启动

chkconfig sshd on

[root@localhost ~]# vim /etc/ssh/sshd_config
修改里面的ClientAliveInterval 0之后重启SSHD服务(生产服务器谨慎使用)
[root@localhost ~]# /etc/init.d/sshd restart
原文地址:https://www.cnblogs.com/ywc85/p/5033032.html