延长ssh连接时间 2020年12月31日 | Ops 修改配置文件: vim /etc/ssh/sshd_config 每60秒往客户端发送会话请求, 保持连接, 最多重试5次。 1 2 ClientAliveInterval 60 ClientAliveCountMax 5 生效方法: 1 systemctl status sshd && systemctl restart sshd 没有标签