How to add a SSH Key Pair that can be used with the CLI
instance ssh Key Pair CLI R2

How to add a SSH Key Pair that can be used with the CLI

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: / 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.

Was this article helpful?

Next article:

How to deploy Windows on OpenStack

In this tutorial I will show you how to run Windows Server 2016 on OpenStack. Preparation Download a Windows 2016 Server ISO image at Microsoft (registration is necessary). Download the Fedora VirtIO drivers. You can find more options here. In this example we will use VirtalBox. Although you can also use KVM on Linux for this. Create a VM inside VirtualBox Choose a name, as a type, choose Microsoft Windows, and as a version choose Other Windows (64 bit).