failed to upload ssh key, what is the ssh key.

Asked by qiangz2019? on 2019-01-17

WHEN i INSTALL esys-particle, I can't upload publish key SSH, can anybody help me?

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
qiangz2019?
Solved:
2019-01-18
Last query:
2019-01-18
Last reply:
2019-01-18
Dion Weatherley (d-weatherley) said : #1

Hi qiangz,

Instructions for creating and uploading SSH keys to Launchpad are available here:
https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair

Cheers,

Dion

qiangz2019? (jasonzhou) said : #2

Hi Dion,

Thanks for your help!
I found this link, but I still can't upload the SSH successfully.
SSH key was created, but I don't know how to upload.
Actually I don't know what is the name of the SSH key.

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

Dion Weatherley (d-weatherley) said : #3

Hi Qiangz,

OK, let me break it down step-by-step:

1) ensure you have bzr installed. In a terminal window type:
which bzr

[this should show the path to the installed bzr executable].

If it doesn't find bzr, install it e.g. on Debian or Ubuntu:
sudo apt-get install bzr

2) tell bzr who you are. In the terminal type:
bzr whoami "Your Name <email address hidden>"

[Replace "Your Name" and "<email address hidden>" with your own name and email address]

3) generate an SSH key to upload to Launchpad. In the terminal type:
ssh-keygen -t rsa

[When asked for passwords, just hit 'Enter']

4) print out the generated key in the terminal window:
cat ~/.ssh/id_rsa.pub

5) copy the returned text to your clipboard so you can paste it into your browser

6) In a browser, navigate to your homepage on Launchpad. In your case it is:
https://launchpad.net/~jasonzhou

7) Log in to Launchpad if you are not already logged in.

8) On your Launchpad homepage you should see the words "SSH keys:". There will be a small round symbol of a pen on a yellow background beside these words. Click this symbol. Thereafter you will probably be asked to log in to Launchpad again (for added security). Continue to log in again

9) You should be directed to a page entitled "Change your SSH keys". Paste the id_rsa.pub text from step 5 into the textbox on this webpage, then click the "Import Public Key" button below the textbox.

10) Next return to your terminal window and inform bzr of your Launchpad username:
bzr launchpad-login your-launchpad-username

[replace "your-launchpad-username" with your actual username]

This should be all you are required to do in order to set up your SSH key on Launchpad. You should then be able to download the latest version of ESyS-Particle (and GenGeo) via bzr:
bzr branch lp:esys-particle
bzr branch lp:esys-particle/gengeo

Cheers,

Dion

qiangz2019? (jasonzhou) said : #4

Hi Dion,

Thanks so much for your great help!
I have already fixed this problem according to your example.
Have a good weekend!

Best,

Jason