Re: Bringing ssh connections back to life after hibernation
- From: Augustus SFX van Dusen <ASFXvD@xxxxxxxxx>
- Date: Mon, 25 Sep 2006 17:34:55 GMT
On Mon, 25 Sep 2006 16:57:51 +0000, Unruh wrote:
Augustus SFX van Dusen <ASFXvD@xxxxxxxxx> writes:
On Sun, 24 Sep 2006 23:21:39 +0000, Unruh wrote:
Augustus SFX van Dusen <ASFXvD@xxxxxxxxx> writes:
In my setup I sometimes have to put my computer to hibernate when I
have
one or more ssh (OpenSSH, in fact) connections to remote hosts. My
hibernate setup is such that when I bring my computer back to life the
network is up and running immediately. However, my ssh connections to
remote hosts take some 10-15 minutes to revive.
Anybody know why that should be the case? Anybody know if there is
some
OpenSSH configuration parameter that would get the ssh connections back
to life quickly?
I hae the same problem when my network goes down for a while (ISP
problems) I sometimes find that opening a new ssh to the same host
revives teh old one. Not sure where the problem is-- whetehr it is a
long timeout in the local or in the remote ssh.(It has never been 15
min, but that may depend on the length of the down time)
For what it's worth, I think I have found a solution to my problem
(not for the first time immediately after asking for a answer to some
question in the net either). If in my /etc/ssh/ssh_config I enter the
lines
ServerAliveCountMax 1
ServerAliveInterval 10
While the latter looks useful, the former seems counterproductive, at
least in my situations. Ie, it says that if once the server does not
respond to the ServerAlive message, you are disconnected. That seems
pretty harsh.
I guess it is. I use a combination of autossh and screen though, which
so far seems to work fine with such settings.
then my connections seem to come back quickly enough after reviving my
computer.
.
- References:
- Bringing ssh connections back to life after hibernation
- From: Augustus SFX van Dusen
- Re: Bringing ssh connections back to life after hibernation
- From: Unruh
- Re: Bringing ssh connections back to life after hibernation
- From: Augustus SFX van Dusen
- Re: Bringing ssh connections back to life after hibernation
- From: Unruh
- Bringing ssh connections back to life after hibernation
- Prev by Date: Re: Bringing ssh connections back to life after hibernation
- Next by Date: Re: locking down sftp directory
- Previous by thread: Re: Bringing ssh connections back to life after hibernation
- Next by thread: Re: Bringing ssh connections back to life after hibernation
- Index(es):
Relevant Pages
|
|