参考ssh连接远程服务器自动断开解决 sudo vi /etc/ssh/sshd_config ClientAliveInterval 60 ClientAliveCountMax 30 service sshd reload