服务端,批改/etc/ssh/sshd_config

TCPKeepAlive yesClientAliveInterval 60ClientAliveCountMax 3

客户端,批改/etc/ssh/ssh_config

Host *TCPKeepAlive yesServerAliveInterval 30ServerAliveCountMax 5IPQoS lowdelay throughput