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.
To add a keypair
Log in to the OpenStack dashboard.
If you are a member of multiple projects, select a project from the drop-down list at the top of the Project tab.
Click the Access & Security category.
Click the Keypairs tab. The dashboard shows the keypairs that are available for this project.
To add a keypair
Click
.The Create Keypair window appears.
In the Keypair Name box, enter a name for your keypair.
Click
.Respond to the prompt to download the keypair.
To import a keypair
Click
.The Import Keypair window appears.
In the Keypair Name box, enter the name of your keypair.
In the Public Key box, copy the public key.
Click
.
Save the
*.pem
file locally and change its permissions so that only you can read and write to the file:$ chmod 0600 MY_PRIV_KEY.pem
Use the ssh-add command to make the keypair known to SSH:
$ ssh-add MY_PRIV_KEY.pem
The public key of the keypair is registered in the Nova database.
The dashboard lists the keypair in the Access & Security category.