64b6c9261e
Current folder name New folder name Book title ---------------------------------------------------------- basic-install DELETE cli-guide DELETE common common NEW admin-guide-cloud Cloud Administrators Guide docbkx-example DELETE openstack-block-storage-admin DELETE openstack-compute-admin DELETE openstack-config config-reference OpenStack Configuration Reference openstack-ha high-availability-guide OpenStack High Availabilty Guide openstack-image image-guide OpenStack Virtual Machine Image Guide openstack-install install-guide OpenStack Installation Guide openstack-network-connectivity-admin admin-guide-network OpenStack Networking Administration Guide openstack-object-storage-admin DELETE openstack-security security-guide OpenStack Security Guide openstack-training training-guide OpenStack Training Guide openstack-user user-guide OpenStack End User Guide openstack-user-admin user-guide-admin OpenStack Admin User Guide glossary NEW OpenStack Glossary bug: #1220407 Change-Id: Id5ffc774b966ba7b9a591743a877aa10ab3094c7 author: diane fleming
35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
|
|
xml:id="nova_cli_keygen"><title>Add keypair</title>
|
|
<para>Create at least one keypair for each project. If you have
|
|
generated a keypair with an external tool, you can import it into
|
|
OpenStack. The keypair can be used for multiple instances that
|
|
belong to a project.</para>
|
|
<procedure>
|
|
<title>To add a keypair</title>
|
|
<step>
|
|
<title>Create a key</title>
|
|
<para>To create a <literal>mykey</literal> key that you can
|
|
associate with instances, run the following command:</para>
|
|
<screen>
|
|
<prompt>$</prompt> <userinput>nova keypair-add mykey > mykey.pem</userinput></screen>
|
|
<para>Save the <filename>mykey.pem</filename> file to a secure
|
|
location. It enables root access to any instances with which
|
|
the <literal>mykey</literal> key is associated.</para>
|
|
</step>
|
|
<step>
|
|
<title>Import a keypair</title>
|
|
<para>To import an existing public key,
|
|
<literal>mykey.pub</literal>, and associate it with the
|
|
<literal>mykey</literal> key, run the following
|
|
command:</para>
|
|
<screen>
|
|
<prompt>$</prompt> <userinput>nova keypair-add --pub-key mykey.pub mykey</userinput></screen>
|
|
<para>You must have the matching private key to access instances
|
|
that are associated with this key.</para>
|
|
</step>
|
|
</procedure>
|
|
</section>
|