最近在Centos 7 上安装软件,一会不看就自动断开,也不知道软件的安装进度如何,一气之下我就直接改sshd_config文件,瞬间心情好多了。
1.编辑sshd配置文件
# vi /etc/ssh/sshd_config `找到
#ClientAliveInterval 0 #ClientAliveCountMax 3
修改为
ClientAliveInterval 60 ClientAliveCountMax 3 `
2.重启sshd服务
# systemctl restart sshd
这样连接centos7长时间不操作也不会连接超时中断了。
原文来自:https://renwole.com/archives/310
本文地址:https://www.linuxprobe.com/connection-timed-out.html编辑:王毅,审核员:逄增宝
本文原创地址:https://www.linuxprobe.com/connection-timed-out.html编辑:王毅,审核员:暂无