服务端,批改 /etc/ssh/sshd_config
:
TCPKeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 3
客户端,批改 /etc/ssh/ssh_config
:
Host *
TCPKeepAlive yes
ServerAliveInterval 30
ServerAliveCountMax 5
IPQoS lowdelay throughput
服务端,批改 /etc/ssh/sshd_config
:
TCPKeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 3
客户端,批改 /etc/ssh/ssh_config
:
Host *
TCPKeepAlive yes
ServerAliveInterval 30
ServerAliveCountMax 5
IPQoS lowdelay throughput