1. 在 PuTTY 的 Connection 项目中设定 “Sending of null packets to keep session active”的值,
也就是每隔几秒传送一个 null packet 让 session不会 timeout。
2. 启用 sshd host 的 /etc/ssh/sshd_config 设定值: TCPKeepAlive yes
也就是每隔几秒传送一个 null packet 让 session不会 timeout。
2. 启用 sshd host 的 /etc/ssh/sshd_config 设定值: TCPKeepAlive yes
配置PuTTY和sshd以维持SSH会话活跃
本文详细介绍了如何在PuTTY中设置定时发送null packet以避免SSH会话超时,并通过修改sshd_config文件启用TCPKeepAlive功能来确保连接持久稳定。
2266

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



