caching
Frederik Eaton
frederik at a5.repetae.net
Mon Mar 13 07:15:02 EST 2006
Hi,
About caching, I've not been paying attention for some time, but
things seem to have improved from a usability standpoint. Now I have
"ControlPath ~/.ssh/sockets/%r@%h:%p" in .ssh/config and the procedure
is fairly automated.
One thing is, it would be nice is to have an option to specify that,
if it is not possible to connect to an old socket, then ssh should
remove the socket and create a new one.
$ ssh fly # <- here ssh knows that existing socket is dead
Control socket connect(/home/frederik/.ssh/sockets/frederik at fly:22): Connection refused
Linux fly 2.6.15.6 #1 Sun Mar 12 07:53:50 GMT 2006 i686 GNU/Linux
...
$ ssh -fNM fly # <- here ssh doesn't bother to check that existing socket is dead
ControlSocket /home/frederik/.ssh/sockets/frederik at fly:22 already exists
Then I would specify this option in .ssh/config for certain hosts, and
their master connections would get resurrected automatically if they
happened to die...
Regards,
Frederik
On Sun, Apr 17, 2005 at 10:02:51AM +1000, Darren Tucker wrote:
> Frederik Eaton wrote:
> >I've filed bugs as requested, for version 3.9p1. I don't have time to
> >reverify the problems on 4.0 unless you really think that they've been
> >fixed there.
>
> Several bugs relating to the connection caching code *were* fixed in 4.0. From the changelog:
>
> - djm at cvs.openbsd.org 2004/10/29 21:47:15
> [channels.c channels.h clientloop.c]
> fix some window size change bugs for multiplexed connections: windows
> sizes were not being updated if they had changed after ~^Z suspends and
> SIGWINCH was not being processed unless the first connection had
> requested a tty; ok markus
>
> So, yes, you need to retest on 4.0...
>
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
> Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>
--
http://ofb.net/~frederik/
More information about the openssh-unix-dev
mailing list