Ask Your Question

Is it possible to inject 2 keypairs into an instance? [closed]

asked 2014-08-14 10:06:47 -0500

orangeiv gravatar image

updated 2014-08-15 12:47:04 -0500

rbowen gravatar image

is it possible to inject 2 keypairs into an instance?

I can inject one by key_name by following the API guide.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by orangeiv
close date 2014-08-18 18:55:28.370244


I did not try that, but what if you import key, and put two public keys inside (concatenated)?

T u l gravatar imageT u l ( 2014-08-14 14:50:38 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-18 04:46:15 -0500

beni gravatar image

If you can use Cloudinit to set up your instance, that is, when the image you are using is Cloudinit enabled, you can write a Cloudinit file that adds more SSH public keys to authorized_keys . See for the syntax of cloudinit files and for the usage of Cloudinit within OpenStack.

Another possibility is to wait until the machine has finished booting, then SSH to it with the one key you could inject and edit authorized_keys to include more keys.

edit flag offensive delete link more


thank you very much

orangeiv gravatar imageorangeiv ( 2014-08-18 18:55:06 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-08-14 10:06:47 -0500

Seen: 220 times

Last updated: Aug 18 '14