配置SSH连接不断线 sudo vim /etc/ssh/ssh_config 添加下面两个参数 TCPKeepAlive yes ServerAliveInterval 300 解释:TCPKeepAlive :保持连接; ServerAliveInterval 300 :每隔5分钟发送一个数据包到服务器,表示客户端还处于“活”的状态。 来源:oschina链接:https://my.oschina.net/u/1418902/blog/186493 标签 Linux Ubuntu 配置