1.
vim /etc/ssh/ssh_config
添加:
ServerAliveInterval 50
ServerAliveCountMax 3
2.
vim /etc/ssh/sshd_config
添加:
ClientAliveInterval 50
ClientAliveCountMax 3
3.重启ssh服务器
service sshd restart
(或者service ssh restart)
1.
vim /etc/ssh/ssh_config
添加:
ServerAliveInterval 50
ServerAliveCountMax 3
2.
vim /etc/ssh/sshd_config
添加:
ClientAliveInterval 50
ClientAliveCountMax 3
3.重启ssh服务器
service sshd restart
(或者service ssh restart)
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。