Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have followed the directions listed at http://developer.ubuntu.com/packaging/html/getting-set-up.html 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

1 Answer 1

up vote 13 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/id_rsa.pub. 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/id_rsa.pub using a text editor (gedit will do)
  3. Copy the entire contents of the file (one very long line).
  4. Open https://launchpad.net/~/+editsshkeys 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

 
discard

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.