On Mon, Oct 08, 2007 at 01:16:47PM -0400, Daniel Jacobowitz wrote:
> On Mon, Oct 08, 2007 at 06:47:25PM +0200, Filippo Giunchedi wrote:
> > On Mon, Oct 08, 2007 at 05:28:20PM +0200, Filippo Giunchedi wrote:
> > > I'm not sure how to fix this without breaking existing scripts, perhaps
> > > searching the command line for -M and use that if present might work.
> > 
> > I came up with this: http://rafb.net/p/9uvgUu84.html
> > 
> > This will maintain backward compatibility, it is however impossible to
> > pass -M to the real ssh because in the debian version -M takes precedence 
> > over
> > environment.
> > I do not like the idea of env taking precedence over command line, as this 
> > seems
> > to be the case for -M being used.
> 
> Seems reasonable to me.  It was already difficult to pass -M to ssh; I
> use -o ControlMaster=yes instead.

I _think_ this got finally fixed in the last upload, right now the behaviour is
this:

autossh -M <port> <host>  # connects to <host> using monitoring <port> 
AUTOSSH_PORT=<port> autossh <host> # connects to <host> using monitoring <port> 
autossh <host> # tries random monitoring port

autossh -- -M <host> # connects to host using random monitoring port but passes
                       -M to ssh

so, the bug seems closed if that is okay with you,
filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

Gretchen: You're weird.
Donnie: Sorry.
Gretchen: No, that was a compliment.
-- from Donnie Darko (2001)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to