关于ssh:SSH长连接

21次阅读

共计 193 个字符,预计需要花费 1 分钟才能阅读完成。

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

TCPKeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 3

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

Host *
TCPKeepAlive yes
ServerAliveInterval 30
ServerAliveCountMax 5
IPQoS lowdelay throughput

正文完
 0