How to Import SSH Public Key to OpenStack Horizon on CloudFerro Cloud

If you already have an SSH key pair on your computer, you can import your public key to the Horizon dashboard. Then, you will be able to use that imported key when launching a new instance.

By importing it directly to Horizon, you will eliminate the need to use tools like ssh-copy-id or manually edit the authorized_keys file. Also, your key will be available in OpenStack CLI.

After uploading your public key, you will not be able to apply it to an already created virtual machine. If you need to add a key to an existing VM, please follow this article instead: How to add SSH key from Horizon web console on CloudFerro Cloud.

Note

You can have multiple SSH keys uploaded to your Horizon dashboard. You can then use them for different tasks.

What We Are Going To Cover

  • Preparation

  • Importing a Key

Prerequisites

No. 1 Account

You need a CloudFerro Cloud hosting account with access to the Horizon interface: https://horizon.cloudferro.com.

No. 2 Generated SSH key pair

You need a generated SSH key pair on your computer. If you do not have one yet, you can create it by following one of these articles:

Step 1 Preparation

Make sure that your public key is available to you. If you have not yet generated it, please follow Prerequisite No. 2.

Login to the Horizon dashboard: https://horizon.cloudferro.com.

Go to Compute -> Key Pairs. You should see the following screen:

../_images/ssh-import-01_creodias.png

Step 2 Importing a Key

Click Import Public Key. The following window should appear:

../_images/ssh-import-02_creodias.png

Choose a name for that key and enter it in the Key Pair Name text field. In this example, we will call it sshkey.

From the drop-down menu Key Type choose SSH Key.

Click Browse….

A file selector should appear. Its look will vary depending on your operating system and graphical environment. Choose your public key file there.

It should now appear in the Public Key text field:

../_images/ssh-import-03_creodias.png

Click Import Public Key.

The key should now be visible in the Horizon dashboard:

../_images/ssh-import-04_creodias.png

What To Do Next

Now that you have imported your key, it is time to use it for creation of virtual machines. Please check one of the following articles:

You can also use your key in the OpenStack CLI (for example during the creation of virtual machines). Please follow one of the following articles to get started: