Key pairs are SSH credentials that are injected into an instance when it is launched and used for access to the instance. You can create a key pair in Openstack or import the one generated with an external tool into Openstack.
To create a key pair in Openstack, you can follow the instructions below.
- 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: $ chmod 0600 yourPrivateKey.pem
- To make the key pair known to SSH, run the ssh-add command. $ ssh-add yourPrivateKey.pem
If you have generated a key pair with an external tool, you can import it into OpenStack.
- 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 Import Key Pair.
- In the Import Key Pair dialog box, enter the name of your key pair, copy the public key into the Public Key box, and then click Import Key Pair.
The Dashboard lists the key pair on the Key Pairs tab. You can use the key pair when you create a new instance.
Comments
0 comments
Please sign in to leave a comment.