Q: authentication.conf not using 'user' attribute?
Alexander Belchenko
bialix at ukr.net
Sat Aug 21 07:16:59 BST 2010
Maritza Mendez пишет:
>
> Hi again.
>
> I tried and failed to set up authentication.conf a long time ago. So
> I've been saying things like
>
> bzr branch bzr+ssh://bzruser@server.org/path/to/trunk
> <http://bzruser@server.org/path/to/trunk>
>
> where of course 'bzruser' is a user at server.org <http://server..org>
> and is different from my username (martitza) on the local system.
>
> Now I'd like a few people to share a common login. So rather than make
> everyone do extra typing, I decided to try authentication.conf again.
>
> I have it set up on the local machine with authentication.conf like this:
>
> [server.org <http://server.org>]
> scheme=bzr+ssh
scheme should be = ssh
Everything else is correct.
> host=server.org <http://server.org>
> user=bzruser
> password=password_for_user=bzrusr_on_server.org
Password will work only if you're using paramiko as ssh client. You
can check which client is using by inspecting .bzr.log.
You can force paramiko with environment variable BZR_SSH=paramiko
> <http://bzrusr_on_server.org>
>
> But when I say
>
> bzr branch bzr+ssh://server.org/path/to/trunk
> <http://server.org/path/to/trunk>
>
> I am *always* prompted for the password of == the user running the
> command on the local machine == which of course is not bzruser (and
> actually does not match any username on server.org <http://server.org>)
>
> It's as if bzr is not using (or not finding a match to server.org
> <http://server.org>) in authentication.conf.
> So I tried changing scheme=bzr to 'bzr+ssh' or just 'ssh' but none of
> those works either.
>
> As a sanity check, I verfied that
>
> bzr branch bzr+ssh://bzruser@server.org/path/to/trunk
> <http://bzruser@server.org/path/to/trunk>
>
> still works (provided I provide the password when prompted).
>
> What am I doing wrong? I'm still using bzr 2.1 if that matters.
>
> Thanks,
> ~M
>
>
More information about the bazaar
mailing list