Keeping SSH connections open

From: Augustus SFX van Dusen (ASFXvD_at_story.net)
Date: 06/15/05


Date: Wed, 15 Jun 2005 16:43:20 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 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

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.

        Can anybody suggest how to pull this one off? Is it even possible?



Relevant Pages

  • Keeping OpenSSH connections alive
    ... I connect from B to A by means of ssh. ... is, on B I am running X windows, and I open xterms that create a shell ... suspend software available in www.suspend2.net. ... forked in A for each ssh connection from B stay alive for just a few ...
    (SSH)
  • ssh and X11
    ... I have a problem opening an Xterm window on my Suse linux machine ... after I ssh to a remote machine. ... In fact I lose keyboard input capabilities in the window where I ...
    (comp.security.ssh)
  • Re: SSH via Expect disconnects
    ... using autoexpect was the answer (please refer to thread ... >> I have received one suggestion that I explore the idea of using keys ... >> have poured through the manpage for Expect as well as SSH, ... >>> I am using an expect script to initiate an SSH session to another host ...
    (comp.lang.tcl)
  • Can Exceed connect to linux (running Gnome) through SSH?
    ... Each firewall allows SSH ... Now start xterm and you should see a window pop up" ... I simply log in through the Gnome login screen and it works. ... (since ssh is really the psuedo server and the Linux box's IP ...
    (comp.os.linux.security)
  • Re: Can Exceed connect to linux (running Gnome) through SSH?
    ... Each firewall allows SSH ... Now start xterm and you should see a window pop up" ... > I simply log in through the Gnome login screen and it works. ...
    (comp.os.linux.security)