在服务的/etc/ssh/sshd_config添加如下配置: ClientAliveInterval 60 ClientAliveCountMax 3 然后重启sshd 相关文章: 2022-01-27 2021-11-02 2022-12-23 2021-12-15 2021-10-23 2022-12-23 2022-12-23 2022-12-23