Re: Why does ssh keep hanging
- From: Chris Davies <chris-usenet@xxxxxxxxxxxx>
- Date: Mon, 30 Apr 2012 10:38:40 +0100
unruh <unruh@xxxxxxxxxx> wrote:
I am connecting to the net via a home router wireless (Zoom) and I am
discovering that if I leave an ssh session for more than a minute of
two, it freezes (ie the ssh session stops being connected and the screen
is frozen)
One (or more) of the firewall devices between you and the remote server
is timing out your session. To stop this happening you need to use the
ServerAliveInterval setting.
For example, drop this in your ~/.ssh/config, or if the file already
exists, tweak it appropriately:
Host *
ServerAliveInterval 60
I often have these two configuration items in there, too, but YMMV:
ForwardX11 yes
Compression yes
Chris
.
- References:
- Why does ssh keep hanging
- From: unruh
- Why does ssh keep hanging
- Prev by Date: Re: iptables NAT forwarding adding 75-100ms
- Next by Date: Re: iptables NAT forwarding adding 75-100ms
- Previous by thread: Re: Why does ssh keep hanging
- Next by thread: Re: iptables NAT forwarding adding 75-100ms
- Index(es):
Relevant Pages
|