How to add an SSH Key Pair that can be used with the CLI
Estimated time to read: 2 minutes
In this tutorial, we show you how to add an SSH key pair using the OpenStack CLI tools. 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. If you want to launch instances using the dashboard, check out this tutorial on How to manage your SSH Keys in the Fuga Cloud dashboard.
- 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.
If you already have a private key, you can use this command to create a Public Key in OpenStack
If you want to delete a key pair in Fuga Cloud OpenStack use the following command.
You have now learned how you can add and delete key pairs using the CLI.