好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

如何让ssh连接服务器或者sshtunnel保持连接 - Linu


如何让ssh连接服务器或者sshtunnel保持连接

 

其实也很方便,只要在/etc/ssh/ssh_config文件里加两个参数就行了

 

TCPKeepAlive yes #保持连接  www.2cto.com  

 

ServerAliveInterval300 #每过5分钟发一个数据包到服务器表示我还活着

 

如果你没有root权限,修改或者创建~/.ssh/ssh_config也是可以的.

 

查看更多关于如何让ssh连接服务器或者sshtunnel保持连接 - Linu的详细内容...

  阅读:57次