Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have followed the directions listed at to get my desktop computer set up so that I could work on bug fixing during 12.04's development.

Now I am trying to get set up again on my laptop computer (different machine) so I can help contribute to Ask Ubuntu badge integration with the Ubuntu Accomplishments system. However, when I try to run the first command listed to do a bzr branch, I get the following error in my terminal:

Permission denied (publickey).
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

What do I need to do to get set up and ready to work again on a new machine? Should I just follow all the steps in the first link again (even though they seem to assume it's your first time getting set up with Launchpad)? Or are there steps I should skip / do differently?

Note: I do not have access to my original desktop machine at this time.

share|improve this question
up vote 16 down vote accepted

On your old machine, you generated a SSH key and then added that to your Launchpad account. Bzr uses that key to acces launchpad. So if the key on your new machine doesn't match the one you uploaded to Launchpad, you will be unable to branch code from certain repositories on Launchpad.

Two solutions are possible. The first is of course to transfer your SSH keys from the old machine. You'd need to bring over two files: .ssh/id_rsa and .ssh/ Watch the permissions, as SSH is very strict about that.

The second solution, if you have no access to your old machine BUT you can log into your Launchpad account, is to add a new SSH key so that Launchpad will let the new machine access bzr branches, since it will identify the new key as belonging to you.

For this, on the Getting Set Up document you posted, follow the steps for "Create your SSH key" and "Upload your SSH key to Launchpad".

This will at least allow you to run bzr branch without problems.

So in a nutshell:

  1. Run ssh-keygen -t rsa
  2. Open .ssh/ using a text editor (gedit will do)
  3. Copy the entire contents of the file (one very long line).
  4. Open on your browser
  5. Under "Add an SSH key", paste the line from step 3, then click on "Import Key".
share|improve this answer
Yep, everything started working as intended after that. Clear and informative answer; thank you very much! – Christopher Kyle Horton Jun 1 '12 at 3:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.