Most cloud images support public key authentication rather than conventional password authentication. Before launching an instance, you must add a public key to the Compute service.
If you have generated a key pair with an external tool, you can import it into OpenStack. The key pair can be used for multiple instances that belong to a project.
Create at least one key pair for each project.
Log in to the dashboard.
Select the appropriate project from the drop down menu at the top left.
On the Project tab, open the Compute tab.
Click the Key Pairs tab, which shows the key pairs that are available for this project.
Click Create Key Pair.
In the Create Key Pair dialog box, enter a name for your key pair, and click Create Key Pair.
The private key will be downloaded automatically.
To change its permissions so that only you can read and write to the file, run the following command:
shell $ chmod 0600 yourPrivateKey.pem
The Compute database registers the public key of the key pair.
The Dashboard lists the key pair on the Key Pairs tab.