Re: ssh connection

From: David Efflandt (efflandt_at_xnet.com)
Date: 10/07/03


Date: Tue, 7 Oct 2003 01:51:32 +0000 (UTC)

On Mon, 6 Oct 2003 14:46:17 -0700, Raymond Hall <hallr@mmsi.com> wrote:
> Wonder if anyone knows of a way to keep an ssh connection alive. Our setup:
>
> Machine A connects over the internet to our ssh server in the DMZ. Once
> that connection is established, we tunnel back through from machine B.
>
> I'd like to know the best way to keep that initial connection from Machine A
> alive....a ping from a cron? Anyone?

Maybe 'KeepAlive yes' in your ~/.ssh/config. However, if you have a shell
that disconnects you during inactivity or some firewall/NAT freeing up
inactive ports, that could be a problem. One broadband gateway in
particular that closes inactive ssh sessions is Dlink DI-604 (although, it
was never a problem for my DI-704).

I sometimes forget to disconnect from my Solaris ISP overnight, and it
still works in the morning, unless my dynamic adsl has reconnected with a
different IP.

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/


Relevant Pages

  • Re: Prevent sleep during ssh session
    ... *connection* dies after inactivity. ... machine sleeping and not this, but that was an assumption, and you know ... If it is this then it is easy to fix with by adding the KeepAlive ssh ...
    (Ubuntu)
  • Inactivity disconnecte after too short a time - how to change?
    ... I use ssh to connect to remote systems both from work and from ... When I connect from work the connection stays up essentially ... However when I connect from home the ssh connections drop out after ... Nothing visible happens on the window when it disconnects but if you ...
    (comp.security.ssh)
  • Re: automatic logout
    ... ssh or sftp ... will be logged out after 30 minutes of inactivity. ... but it unceremoniously dumps the connection. ... using ssh) it will close those too. ...
    (RedHat)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • Re: Problem connecting to SSH, OpenVMS7.3-2, HP TCP/IP v5.4 patched
    ... warning: Authentication failed. ... connection lost (Connection closed by remote host.). ... So, as you can see, I am trying to make an ssh connection with the ...
    (comp.os.vms)