bzr+ssh using persistent SSH connections?

Nicholas Allen nick.allen at onlinehome.de
Mon Mar 9 12:34:57 GMT 2009


Aha I worked it out! Actually this is even easier than using ssh-agent to 
prevent password and also speeds up authentication. All you need is this in 
~/.ssh/config:

Host *
   ControlPath ~/.ssh/master-%r@%h:%p

and then ssh to the machine with -M option and keep that ssh session open:

ssh -M user at host.com

Then Bazaar will reuse the authentication (and hence not need password) while 
you have not exited the master session.

I guess this should go on the wiki somewhere...

Cheers,

Nick

On Monday 09 March 2009 13:14:33 Nicholas Allen wrote:
> Hi,
>
> I was wondering if it's possible to have Bazaar share SSH connections
> between sessions so that a new TCP connection, authentication and
> exchanging keys does not have to be performed on every command.
>
> Is it possible to set this up using ControlPath somehow?
>
> http://www.torchbox.com/blog/ssh_tips_2.html
>
> I'm happy to update the wiki with tips on how to do this if I work it
> out...
>
> Cheers,
>
> Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090309/51fc0636/attachment.pgp 


More information about the bazaar mailing list