编辑一下CentOS的: /etc/ssh/sshd_config #TCPKeepAlive yes #ClientAliveInterval 0 去掉前面的#号,并将0改为3 然后重启service sshd restart http://www.infosec-wiki.com/