Re: Keeping SSH connections open

From: Andrew Schulman (andrex_at_deadspam.com)
Date: 06/15/05


Date: Wed, 15 Jun 2005 16:55:04 GMT


> I am ssh'ing into a Linux box A from another Linux box B. B is a
> box that has to be suspended to disk every so often, most of the time
> while an ssh session to A is in place. What I would like to be able to do
> is to resume such session after B is brought back up from its suspended
> state.
>
> More specifically: Just before suspending B, in my desktop I have an
> xterm running an ssh session to A. What I would like is for that xterm to
> be there, waiting to accept further commands, when B is running again.
> Currently, when B resumes the xterm is there, but the ssh connection is
> not any more.

I think autossh will probably do what you want. The home page is
http://www.harding.motd.ca, but it's down at the moment. Still you can
probably find an autossh package in your distro and read the docs there.

-- 
To reply by email, replace "deadspam.com" by "alumni.utexas.net"


Relevant Pages

  • ssh, bash and mysql, odd behaviour of polish characters (iso-8859-2)
    ... running in an xterm. ... I need to be able to enter some polish characters on the command line (through ... When mysql is run in an ssh session to a Debian ...
    (Debian-User)
  • Re: Keeping SSH connections open
    ... > while an ssh session to A is in place. ... > xterm running an ssh session to A. What I would like is for that xterm to ... > Currently, when B resumes the xterm is there, but the ssh connection is ... that did not apply to the suspend ...
    (comp.security.ssh)