Diff for "YourAccount/CreatingAnSSHKeyPair"

Not logged in - Log In / Register

Differences between revisions 14 and 15
Revision 14 as of 2008-07-24 09:39:06
Size: 3386
Editor: c83-254-151-176
Comment:
Revision 15 as of 2008-07-24 10:03:29
Size: 3460
Editor: c83-254-151-176
Comment:
Deletions are marked like this. Additions are marked like this.
Line 34: Line 34:
''I get no prompt and no files when using Cygwin. Nothing. Any cues?''

Launchpad Help > Your account > Importing your SSH key

Why you need an SSH key

The trust that other people put in your Launchpad identity is no more important than when they use code that you've uploaded to Launchpad.

An SSH key secures the connection between your computer and Launchpad while you're pushing Bazaar branches up to Launchpad.

To push code branches to Launchpad you first need to generate your SSH key. The key is made up of two parts: a private key that stays on your computer and a public key that you register with Launchpad. As you might expect, you shouldn't share the private key with anyone.

Creating the key

How you create your SSH key pair depends on which operating system you use.

If the instructions for your operating system are not here, get in touch to request them or, if you know what to do, add them to this page.

Linux/Cygwin

Step 1: Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:

sudo apt-get install openssh-client

With Cygwin you can follow the instructions here: http://pigtail.net/LRP/printsrv/cygwin-ssh.html

Step 2: Once OpenSSH is installed, stay in the terminal and type:

ssh-keygen -t rsa

Step 3: When prompted, press Enter to accept the default file name for your key.

I get no prompt and no files when using Cygwin. Nothing. Any cues?

Step 4: Next, enter then confirm a password to protect your SSH key. Your key pair is stored in ~/.ssh/ as id_rsa.pub (public key) and id_rsa (private key)

Now you need to upload the public portion of your SSH key to Launchpad.

Windows (PuTTY)

Step 1: Download the PuTTY Key Generator from here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Step 2: Run puttygen.exe and click the generate button. PuTTYGen will ask you to move your mouse around in the blank area to generate entropy.

Step 3: Set a key passphrase and confirm it.

Step 4: Click "Save public key" and choose a location to save it. Click "Save private key" and choose a secure location to save it. You must keep this secret key safe!

Can someone please enter more detailed instructions for Putty? I get "invalid public key" when adding the SSH key to Launchpad.

Registering the key with Launchpad

Step 1: Open your public key in a text editor and copy its contents to your clipboard. The public key file has the extension .pub. For example: id_rsa.pub

Step 2: Visit your SSH keys page.

Step 3: Paste your public key into the text box and then click the Import public key button to continue.

Next step

We're almost done setting up your Launchpad account! Before we explore more of Launchpad, let's look at one of the ways it helps other people to see your involvement in free software: karma!

< Importing your PGP key

Understanding karma >

YourAccount/CreatingAnSSHKeyPair (last edited 2018-10-05 20:12:12 by cjwatson)