restoring an OpenStack ssh public key

When a ssh private key is obtained from OpenStack via

openstack keypair create foobar > foobar.pem

the matching public key is stored in the OpenStack tenant. If it is later deleted with

openstack keypair delete foobar

it can be restored with

ssh-keygen -y  -f foobar.pem > foobar.pub
openstack keypair create --public-key foobar.pub foobar
This entry was posted in openstack. Bookmark the permalink.

2 Responses to restoring an OpenStack ssh public key

  1. Pingback: OpenStack Community Weekly Newsletter (July 10 – 17) | The OpenStack Blog

  2. Pingback: OpenStack Community Weekly Newsletter (July 10 – 17) - GREENSTACK

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>