SSH设置不超时

vi /etc/ssh/sshd_config

改为

         ClientAliveInterval 30
         ClientAliveCountMax 3