centos7 ssh 连接超时 延长连接时间设置

修改ssh_config文件

vi /etc/ssh/ssh_config 

添加参数

ClientAliveInterval 180
ClientAliveCountMax 60

重启sshd服务

systemctl restart sshd

posted @ 2022-07-14 10:05  不卷轮子锅  阅读(119)  评论(0)    收藏  举报