This tutorial only applies to our Fuga Cloud release 2 that is currently running in public beta
Because of design decisions you can’t share keys with users in OpenStack. This raises the problem that keys created in the dashboard cannot be used with the OpenStack API credentials as used for the command line interface.
- A Fuga cloud Account
- OpenStack Credential
- OpenStack CLI tools installed
(this comes in 3 different formats: OpenRC.sh / Clouds.yaml / Dockerfile)
If you have access to OpenStack CLI you can use the following commands to create Key Pairs that you can use when deploying instances via the API.
If you don’t have a Key Pair already you can create a new one using the following command.
openstack keypair create <Key Pair name>
This creates a new Key Pair and saves the public pair in OpenStack and returns the private key, please store it in a secure location.
If you already have a private key you can use this command to create a Public Key in OpenStack
openstack keypair create <Key Pair name> --private <place/of/private-key>
This takes the given private key and creates a public key and saves it in OpenStack
If you want to delete a key Pair in Fuga Cloud OpenStack use the following command.
openstack keypair delete <Key Pair name>
If you want to see the current list of registered Key Pairs, use the following command.
openstack keypair list
This command lists the names and fingerprints of the keys stored in OpenStack.
You have now learned how you can add and delete Key Pairs using the CLI.