隧道closures。 packet_write_wait:连接到UNKNOWN端口0:断开的pipe道

你好社区好几天我有问题保持连接到一个SSH隧道 ,我执行VPS。 2到4分钟后,我得到这个错误: 隧道closures。 packet_write_wait:连接到UNKNOWN端口0:断开的pipe道 。 我一直在论坛阅读,但我仍然无法find解决scheme,这些是我的configuration文件。 值得一提的是,我通过代理(Squid)访问互联网。

在我的SSH服务器上 (/ etc / ssh / sshd_config)添加以下几行:

ClientAliveInterval 60 ClientAliveCountMax 5 TCPKeepAlive no 

在我的SSH客户端上 (〜/ .ssh / config):

 Host myhost User root ProxyCommand proxytunnel -p proxy.example.com:3128 -P userproxy:passwordproxy -d dominiovps.com:443 -v -H "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32)" ServerAliveInterval 60 ServerAliveCountMax 5 TCPKeepAlive no 

尝试将ServerAliveInterval减less到1520 :看起来像您的代理服务器configuration为超过60超时,并在一段空闲间隔后closures连接。