最近在Centos 7 上安装软件,一会不看就自动断开,很是讨厌,故调整下面的设置,让其长时间保持连线。
1.编辑sshd配置文件

   
# vi /etc/ssh/sshd_config
找到 #ClientAliveInterval 0 #ClientAliveCountMax 3
修改为 ClientAliveInterval 60 ClientAliveCountMax 3


2.重启sshd服务

   
# systemctl restart sshd


这样连接centos7长时间不操作也不会连接超时中断了。
Tags: ,
centos | 评论(0) | 引用(0) | 阅读(6240)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]