bzr+ssh using persistent SSH connections?
Daniel Clemente
dcl441-bugs at yahoo.com
Tue Mar 10 09:10:57 GMT 2009
El dl, mar 09 2009, Nicholas Allen va escriure:
> 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 think this can help much in plugins like multi-pull, since currently it opens a new connection for each branch and asks you the password one time per branch even if they are in the same server.
However, I don't know how this could be switched on automatically, or whether this behaviour can be included in Bazaar's core to handle this and other situations where you must connect more than one time to a server.
-- Daniel
More information about the bazaar
mailing list