Permission denied (publickey)

Asked by David Rinnan, Aspirix AB

Following:
https://dev.launchpad.net/Getting

Extras:
I have a launchpad account with SSHKey, OpenPGP Key, Signed Ubuntu CoC

Running:
./rocketfuel-setup

Getting (copy paste of final part of terminal output)

Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists... Done
Logging bzr into Launchpad (it's okay if this errors)...
Making local branch of Launchpad trunk, this may take a while...
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
ERROR: Unable to create local copy of Rocketfuel trunk

I have tried multiple times. Exactly same message each time.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #656616.

Revision history for this message
Curtis Hovey (sinzui) said :
#1

Have you set your launchpad id as the lp-login for bzr? What do you get if you do `bzr lp-login`?

Revision history for this message
David Rinnan, Aspirix AB (david-aspirix) said :
#2

I believe I have. It says david-aspirix which is what I have as user id on launchpad

Revision history for this message
David Rinnan, Aspirix AB (david-aspirix) said :
#3

I have ubuntu lucid desktop installed in vmware fusion

Revision history for this message
Curtis Hovey (sinzui) said :
#4

This is an ssh + image configuration issue for bzr, not a bug. I think believe someone from the launchpad-code team has experience dealing with non-public ssh keys.

Revision history for this message
David Rinnan, Aspirix AB (david-aspirix) said :
#5

hm do you mean there could be something wrong with my ssh key?

I have followed the getting started guides on launchpad as well as the guides on launchpad on how to create pgp and ssh keys etc.

Revision history for this message
Martin Pool (mbp) said :
#6

Hi David,

Please run this command in your vm and paste the output:

ssh -v bazaar.launchpad.net

thanks

Revision history for this message
Andrew Bennetts (spiv) said :
#7

Please run this command in your vm and paste the output:

ssh -l david-aspirix -v bazaar.launchpad.net

It's definitely an ssh issue: the "Permission denied (publickey)." in your error output is the problem.

Revision history for this message
David Rinnan, Aspirix AB (david-aspirix) said :
#8

Martin, Andrew,

Result from the command:

user@ubuntu1004desktop:~/launchpad$ ssh -l david-aspirix -v bazaar.launchpad.net
OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to bazaar.launchpad.net [91.189.90.11] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Twisted
debug1: no match: Twisted
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'bazaar.launchpad.net' is known and matches the RSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user/.ssh/identity
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).

Revision history for this message
Martin Pool (mbp) said :
#9

David, this seems to indicate that the SSH public key you've put on Launchpad doesn't actually match the keys in your account. Perhaps you added the key from a different machine. Please add /home/user/.ssh/id_rsa.pub to your account.

Revision history for this message
Gregg Stock (gregg-damagecontrolusa) said :
#10

I had the same problem. my .ssh directory was owned by root. I changed the owner and group to my user name and it worked

Can you help with this problem?

Provide an answer of your own, or ask David Rinnan, Aspirix AB for more information if necessary.

To post a message you must log in.