CentOS系统连接 SSH 频繁掉线处理办法

操作目的:

让Linux系统连接SSH的时候不再自动断线。

操作办法:

1.在 /etc/ssh/ssh_config 和 /etc/ssh/sshd_config末尾都加上以下代码:

TCPKeepAlive yes
ClientAliveInterval 5
ClientAliveCountMax 3

2.重启SSHD服务

systemctl reload sshd
或
systemctl restart sshd

3.大功告成,继续你的生活吧

版权声明:
作者:三炮不吃鱼
链接:https://www.qkeke.com/archives/127.html
来源:小可博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
CentOS系统连接 SSH 频繁掉线处理办法
操作目的: 让Linux系统连接SSH的时候不再自动断线。 操作办法: 1.在 /etc/ssh/ssh_config 和 /etc/ssh/sshd_config末尾都加上以下代码: TCPKeepAlive yes ……
<<上一篇
下一篇>>