On bazaar and keys

Stephen M. Webb stephen.webb at canonical.com
Sun Dec 1 15:49:46 UTC 2013


On 12/01/2013 09:25 AM, Mauricio Tavares wrote:
> How do you specify which private key you want to use when accessing the launchpad (and docs) using bazaar?

Bazaar has a plugin called 'launchpad' (which is probably already installed on your system) that will use the SSH
protocol for authentication.  You can get help on using that plugin from the command line with the command 'bzr help
launchpad'.

The first time you want to check out or commit a Launchpad branch, you will want to use the command 'bzr
launchpad-login' to tell Bazaar which Launchpad account to use for authentication.  What this does under the hood is
store your username in ~/.bazaar/authentication.conf.  When you go to push changes up to the Launchpad server, SSH
will automatically negotiate authentication using the SSH keys you registered on Launchpad under that username and the
private keys available on your local machine until it finds a match.  It doesn't really matter which ones, as long as
you can prove you hold the private key matching one of the public keys on Laucnhpad.

So, in short, you need to upload a public key to Launchpad (through your user page) and configure Bazaar to use your
Launchpad username (through 'bzr launchpad-login').

The rest is magic.


-- 
Stephen M. Webb  <stephen at ubuntu.com>
https://launchpad.net/~bregma



More information about the ubuntu-doc mailing list