直接编辑服务器守护进程配置文件vi /etc/ssh/sshd_config
TCPKeepAlive yes #检测死连接、连接不当关闭
ClientAliveInterval 300 #客户端超时连接时间(秒)
ClientAliveCountMax 3 #客户端超时连接次
重启服务 /etc/rc.d/init.d/sshd restart
SecureCRT ssh连接自动断开问题
推荐:会话选项 –> 终端 –> 反空闲–>发送协议 NO-OP(p) 每 60 秒
本文介绍了如何通过编辑服务器上的sshd_config文件来优化SSH连接,包括设置TCPKeepAlive以检测死连接、调整客户端超时时间等。同时提供了解决SecureCRT自动断开连接问题的方法。
直接编辑服务器守护进程配置文件vi /etc/ssh/sshd_config
TCPKeepAlive yes #检测死连接、连接不当关闭
ClientAliveInterval 300 #客户端超时连接时间(秒)
ClientAliveCountMax 3 #客户端超时连接次
重启服务 /etc/rc.d/init.d/sshd restart
SecureCRT ssh连接自动断开问题
推荐:会话选项 –> 终端 –> 反空闲–>发送协议 NO-OP(p) 每 60 秒

被折叠的 条评论
为什么被折叠?