Re: ssh connection closing due to inactivity
Re: ssh connection closing due to inactivity
- Subject: Re: ssh connection closing due to inactivity
- From: "Adam D. I. Kramer" <email@hidden>
- Date: Sun, 8 Mar 2009 13:44:28 -0700 (PDT)
Hi Steve,
My workaround for this, which is not exactly X11-relevant, is to use
ssh -o TCPKeepAlive=no -o ServerAliveInterval=20 hostname
...TCPKeepAlive is a command you're making to send a beacon of some
sort to the host you're connected to to be sure "things are still cool."
However, if this beacon fails, that's when you get disconnected. Chances are
you're sending it too infrequently and the connection is dying in the
interim. So, I disable this, and explicitly say ssh should have an interval
of 20 seconds between when it should check if the server is alive. Decrease
this if you still have trouble.
If you still have trouble, though, you might consider asking in a
general OSX/UNIX forum, or an OpenSSH forum...
--Adam
On Sun, 8 Mar 2009, Steve Grant wrote:
I am new to the MAC, previously I used linux. I connect to my work using ssh
and have configured my iMac the same way WRT my .ssh/config file. It
contains:
host *
ForwardX11 yes
TCPKeepAlive yes
The command line I use (added the -vvv for debugging):
ssh -l my_user_name remote_host_name -vvv
The connection is made just fine. However, after some amount of inactivity,
the connection is closed. I need to know how to stop this from happening.
Doing the identical thing from my linux box works and the connection never
closes so I know this is due to something with the iMac. I suspect it may be
firewall related. Please help.
Thanks.
Steve Grant
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden