launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #01480
Re: How long does it take you to SSH to bazaar.launchpad.net?
Guilherme Salgado wrote:
> On Tue, 2009-10-27 at 00:22 +0000, Max Bowsher wrote:
>> Francis J. Lacoste wrote:
>>> On October 26, 2009, Guilherme Salgado wrote:
>>>> Did you have that ControlMaster trick enabled in your ssh config and
>>>> an open connection to bazaar.lp.net when you got those numbers? I
>>>> wouldn't be surprised if not, as you were in the London office, but
>>>> others might have it enabled and have forgotten about it.
> [...]
>>> Where is this trick documented again? I don't have it, but it would probably
>>> make sense to enable it.
>> man ssh_config, essentially.
>>
>> Basically, you set a ControlPath in your .ssh/config - e.g. like so:
>>
>> ControlPath ~/.ssh/mux-%r@%h:%p
>>
>> and then when you feel like it, you can fire up a ssh connection like so:
>>
>> ssh -oControlMaster=yes -f -N bazaar.launchpad.net
>
> Or you can set "ControlMaster auto" on your .ssh/config to have the
> first connection be a master, with all subsequent ones using it.
Though it is worth noting that this results in arbitrary ssh processes
happening to stick around longer than the connection which initiated
them, which can confuse both you, and programs that invoke ssh behind
the scenes as a transport, sometimes.
Max.
Attachment:
signature.asc
Description: OpenPGP digital signature
References