用ssh建立的隧道,过一段时间就会中断,我也在服务器上的/etc/ssh/sshd_config里添加了
ClientAliveInterval 30
ClientAliveCountMax 3
让服务器每隔30秒联系我的电脑,以使一直处于连接状态。但还是过一段时间就中断。在自己的电脑的/etc/ssh/ssh_config中也添加了
ServerAliveInterval 60
ServerAliveCountMax 3
都没用,请问大家有什么好办法,防止隧道或者ssh连接中断?谢谢。
如何防止ssh隧道中断
-
- 帖子: 318
- 注册时间: 2007-06-21 2:52
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 如何防止ssh隧道中断
http://scottlab.ucsc.edu/~wgscott/xtal/ ... onnections/etc/ssh/ssh_config
How to avoid interrupted connections
~/.ssh/config
http://superuser.com/questions/37738/ho ... unnel-open
How to reliably keep an SSH tunnel open?
http://shapeshed.com/prevent_your_ssh_c ... _freezing/
Prevent your SSH connection from freezing
http://askubuntu.com/questions/127369/h ... connection
How to prevent “Write Failed: broken pipe” on SSH connection?
-
- 帖子: 1
- 注册时间: 2010-08-22 10:31
Re: 如何防止ssh隧道中断
用screen?