[opensuse] keep alive SSH tunnel after resume
Hi, I'm using port forwarding via SSH tunnel, but if I suspend my machine, the connection hangs after resuming, and I have to rerun the ssh-command on console every time. How can I rebuild the connection automatically after resuming? Thanks, Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Apr 26, 2009 at 5:50 AM, Paul Korossy <p1037905@gmail.com> wrote:
Hi,
I'm using port forwarding via SSH tunnel, but if I suspend my machine, the connection hangs after resuming, and I have to rerun the ssh-command on console every time. How can I rebuild the connection automatically after resuming? Thanks,
Paul You can try using autossh. It is in the build service.
I think it has a 10-minute or so timeout by default, so that may not be fast enough for you. You can likely reduce that to whatever timeout you need. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-04-26 at 09:55 -0400, Greg Freemyer wrote:
On Sun, Apr 26, 2009 at 5:50 AM, Paul Korossy <> wrote:
Hi,
I'm using port forwarding via SSH tunnel, but if I suspend my machine, the connection hangs after resuming, and I have to rerun the ssh-command on console every time. How can I rebuild the connection automatically after resuming? Thanks,
Paul You can try using autossh. It is in the build service.
I think it has a 10-minute or so timeout by default, so that may not be fast enough for you. You can likely reduce that to whatever timeout you need.
Wouldn't it be, rather, enlarge, to hours or days, so that the connection stays alive even if the computer sleeps for hours or days? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkn0eOEACgkQtTMYHG2NR9VuRgCfUaYQo/SdwAVhhsNjr+odZNVi QCwAnA3zhdJgjhbFUJKUqkySHoeR6OyF =RNO6 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Apr 26, 2009 at 11:08 AM, Carlos E. R. <robin.listas@telefonica.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sunday, 2009-04-26 at 09:55 -0400, Greg Freemyer wrote:
On Sun, Apr 26, 2009 at 5:50 AM, Paul Korossy <> wrote:
Hi,
I'm using port forwarding via SSH tunnel, but if I suspend my machine, the connection hangs after resuming, and I have to rerun the ssh-command on console every time. How can I rebuild the connection automatically after resuming? Thanks,
Paul
You can try using autossh. It is in the build service.
I think it has a 10-minute or so timeout by default, so that may not be fast enough for you. You can likely reduce that to whatever timeout you need.
Wouldn't it be, rather, enlarge, to hours or days, so that the connection stays alive even if the computer sleeps for hours or days?
Carlos, I suspect you mis-understand the use of "keepalive". The assumption is you want to keep it alive forever and the keepalive time is how often to check. As an example, I have opensuse system behind a nat firewall at a vacation house that monitors a personal weather station. If the link drops and it comes back to life in an hour or two, then I'm fine. So a long keep alive time is fine. If I was running it on my laptop and every time I suspended my laptop the ssh connection dropped, I would want a very short keepalive time. That way I would not have to wait very after resuming for the dropped connection to be re-established. In the telecom world they have failover systems where the keepalive is measured in milliseconds. That is pretty extreme. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
vasárnap 26 április 2009 15:55:13 Greg Freemyer dátummal ezt írta:
You can try using autossh. It is in the build service.
I think it has a 10-minute or so timeout by default, so that may not be fast enough for you. You can likely reduce that to whatever timeout you need.
Greg
That's exactly what I need, seems to work well with default timeot. Many thanks, -- Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Greg Freemyer
-
Paul Korossy