更改服务器端 打开 vim/etc/ssh/sshd_config 添加 ClientAliveInterval 30 ClientAliveCountMax 6 重启ssh service sshd reload