Ask Your Question
0

How to import a keypair? [closed]

asked 2012-05-21 08:48:44 -0500

michael-lin gravatar image

Dear all,

I have a big question...

Anyone can teach me how to import a keypair?

I don't know what kind of data need to insert into the column "public key" (by dashboard or python-novaclient)?

Thanks for your kindly help :D

Michael Lin 2012.05.21

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 21:07:07.318682

5 answers

Sort by ยป oldest newest most voted
0

answered 2012-05-21 09:21:09 -0500

endre-karlson gravatar image

ssh-rsa <long random="" string=""> <optional descriptive="" string="">

The format above.

Endre.

2012/5/21 Michael Lin question197936@answers.launchpad.net

New question #197936 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+question/197936 (https://answers.launchpad.net/nova/+q...)

Dear all,

I have a big question...

Anyone can teach me how to import a keypair?

I don't know what kind of data need to insert into the column "public key" (by dashboard or python-novaclient)?

Thanks for your kindly help :D

Michael Lin 2012.05.21


You received this question notification because you are an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2012-05-21 09:39:23 -0500

michael-lin gravatar image

Dear Endre Karlson,

Thanks for your answer, but I still confuse >"<

What kind of data should I insert into <long random="" string=""> ?

And I only can use CLI to import keypairs?

I can't import keypair using dashboard?

Thanks a lot : )

Michael Lin 2012.05.21

edit flag offensive delete link more
0

answered 2012-05-22 11:03:14 -0500

mandarvaze gravatar image

Michael,

You need to have a ssh public key (As explained by Endre above)

If you already have a ssh keypair then :

run " cat ~/.ssh/id_rsa.pub" on unix terminal You will see output as explained by Endre above. Copy the entire output (unless off course there is an error) into clipboard and paste in the Edit Box titled "Public Key" (Part of Import Keypair" pop-up dialog on Openstack Dashboard) Give some name to this keypair, and click submit

If you do not have a ssh keypair then : On linux machine you can run "ssh-keygen" command. If you are unfamiliar with this command then you can "man ssh-keygen" (Or look at http://www.manpagez.com/man/1/ssh-keygen/ (http://www.manpagez.com/man/1/ssh-key...) ) By default you can just execute "ssh-keygen" command and go with all defaults. (It is interactive command) At the end, two files id_rsa and id_rsa.pub will be created under ".ssh" folder in your home directory (Remember dot in the beginning)

edit flag offensive delete link more
0

answered 2012-05-24 03:50:46 -0500

michael-lin gravatar image

Thanks Mandar Vaze, that solved my question.

edit flag offensive delete link more
0

answered 2013-09-20 14:39:58 -0500

On a potentially related note, when entering a keypair name in the Dashboard, it appears to not like "@" (e.g.: user@domain.com ). It kept giving me the same error, despite having the correct key contents in the "public key" field.

Maybe that's obvious to most, but threw me off for a few minutes. Hope that helps!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-05-21 08:48:44 -0500

Seen: 1,594 times

Last updated: Sep 20 '13