修改文件 # vi /etc/ssh/sshd_config ClientAliveInterval 60 ClientAliveCountMax 10 /etc/init.d/sshd restart