Re: Keeping SSH connections open

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 06/15/05


Date: Wed, 15 Jun 2005 17:12:08 GMT

Augustus SFX van Dusen <ASFXvD@story.net> wrote:
> 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 had a look into the sshd documentation, and I thought that by setting
> the following values in A's sshd configuration file, I could achieve my
> goals:

> KeepAlive no
> ClientAliveInterval 60
> ClientAliveCountMax 600

That would be my first attempt at it. Does the SSH server remain in
place on A during that time?

> My interpretation was that, with this, my ssh client on B could be
> unresponsive (dormant) for up to 10 hours, before the ssh server on A
> would close the connection. However, that did not apply to the suspend
> scenario I describe, like I said.

When you resume, does everything look okay until you press a key in the
ssh session, or does the xterm already have a quit message from ssh or
something?

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


Relevant Pages

  • 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 ... that did not apply to the suspend ...
    (comp.security.ssh)
  • 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 ... probably find an autossh package in your distro and read the docs there. ...
    (comp.security.ssh)
  • SSH connection from within a jail
    ... Do you know how can I initaite a SSH connection from within a jail? ... I always get the "Host key verification failed." ... Starting the ssh session with -v it seems that the problem is with tty allocation. ...
    (freebsd-questions)