confusing ui when ssh key is not accepted by launchpad

Bug #607969 reported by Daniel Hahler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

I am quite sure, that this used to work (and therefore regressed with some bzr update):

$ bzr export -Dauth --root=whissip-snapshot-$(date -u +%Y-%m-%d) whissip-snapshot.tgz lp:b2evolution/whissip
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

The user in question (a cron user) has a SSH key, but this is apparently not registered in any Launchpad account.

Also, I wonder why "-Dauth" does not produce more output?

$ bzr --version
Bazaar (bzr) 2.1.2
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  Platform: Linux-2.6.24-27-openvz-i686-with-debian-lenny-sid
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib

As a workaround I am using HOME=/dev/null now.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 607969] [NEW] "bzr export" fails with "Permission denied (publickey).", but could go on anonymous

On Tue, 2010-07-20 at 21:10 +0000, Daniel Hahler wrote:
> I am quite sure, that this used to work (and therefore regressed with
> some bzr update):
>
> $ bzr export -Dauth --root=whissip-snapshot-$(date -u +%Y-%m-%d) whissip-snapshot.tgz lp:b2evolution/whissip
> Permission denied (publickey).
> bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
>
> The user in question (a cron user) has a SSH key, but this is apparently
> not registered in any Launchpad account.
Does that cron user perhaps have a Launchpad account configured in
~/.bazaar/bazaar.conf ?

Cheers,

Jelmer

Revision history for this message
Daniel Hahler (blueyed) wrote :

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

> Does that cron user perhaps have a Launchpad account configured in
> ~/.bazaar/bazaar.conf ?

Yes, indeed.

Given that, it looks like the error could need improvement (pointing out
that a specific user name is being used).

Apart from that, I think it might still make sense falling back to
anonymous access maybe?

- --
http://daniel.hahler.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMRjGifAK/hT/mPgARAkkwAJ9vK0PdYvvXD0xJMDgfNUcfoyHfLgCg42K2
8z/JDJrxas9aoC1E4LnchGs=
=n6e/
-----END PGP SIGNATURE-----

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 607969] [NEW] "bzr export" fails with "Permission denied (publickey).", but could go on anonymous

-Dauth doesn't tell you anything because we're using an external SSH to connect.

One thing we could do is print "connecting using 'ssh
<email address hidden> ....'"

--
Martin

summary: - "bzr export" fails with "Permission denied (publickey).", but could go
- on anonymous
+ confusing ui when ssh key is not accepted by launchpad
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: confusing-ui ssh
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.