authentication.conf question

John Arbash Meinel john at arbash-meinel.com
Mon May 12 15:02:40 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

TPJ wrote:
| Hello.
|
| I have a problem with authentication when I use bzr+ssh. I'd like to
| do simply
|
| $ bzr pull bzr+ssh://bazaar.launchpad.net/~some_user/path/to/branch
|
| instead of
|
| $ bzr pull
| bzr+ssh://some_user@bazaar.launchpad.net/~some_user/path/to/branch
|
| without being prompted for password. There are two things to notice
| here:
|
| 1) I have to tell bazaar the username to use.
| 2) I have to tell bazaar the password to use.
|

If you are branching from "bazaar.launchpad.net" you actually need an ssh-key. I
don't believe that launchpad allows plain password authentication.  If you use:

bzr launchpad-login USERNAME

it will remember your username, so that in the future you can do:

bzr pull lp:~some_user/project/branch

Now, you may be talking in terms of a generic bzr+ssh:// and just using
bazaar.launchpad.net as an example.

In which case I would configure your username in ~/.ssh/config with a:

Host host.com
~  User USERNAME

We don't support storing passwords for SSH anywhere (because most ssh programs
don't let us supply them anyway, for security reasons.)

So instead, I would recommend setting up an ssh agent. (ssh-agent on Linux,
Pageant on Windows.) Basically, you give your ssh key to the agent one time, and
then it remembers it for any connections you make.


| I failed to do the both.
|
| I created the file ~/authentication.conf with the following content:
|
| -----------------------------------------
| [DEFAULT]
| scheme=bzr+ssh
| host=bazaar.launchpad.net
| user=my_user
| password=my_password
| -----------------------------------------
|
| but it didn't help.
|
| What did I do wrong?
|
| (I use Bazaar 1.3 on a GNU/Linux box.)
|
|

I believe in 1.5 we will warn/error if you try to supply a password for an ssh
connection, rather than just silently ignoring it.

Vila: certainly when parsing the file, we could see "bzr+ssh" and let the user
know that they should be using something else?

John
=:->


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgoTf8ACgkQJdeBCYSNAAPVQACeODotqW+poCGvO/pPXcoLMQ1Q
EnsAniwgZWvNuzfg9gydwB4z/CgCYW/v
=Q0id
-----END PGP SIGNATURE-----



More information about the bazaar mailing list