ssh key pair

Managing Your SSH Keys on Fuga Cloud

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Key pairs are ssh credentials which are injected into images when they are launched. Creating a new key pair registers the public key and downloads the private key (a .pem file).

SSH key pairs work in two halves; the public key which acts like a lock, and the private key which can be used to open the lock. The public key can be safely passed to your cloud servers while the private key should be kept securely stored on your own computer.

Create Key Pair

Key Pairs are how you login to your instance after it is launched.

  1. Go to the Fuga Cloud Horizon Dashboard
  2. Go to Access & Security by click the item in the navigation under Compute
  3. On this page you can find a couple of tabs. Click on Key Pairs
  4. There you can find the orange button Create Keyp Pair
  5. Give your key pair a recognisable name and click on the create key pair button

Import Key Pair

Key Pairs are how you login to your instance after it is launched.

Choose a key pair name you will recognise and paste your SSH public key into the space provided.

SSH key pairs can be generated with the ssh-keygen command:

ssh-keygen -t rsa -f cloud.key

This generates a pair of keys: a key you keep private (cloud.key) and a public key (cloud.key.pub). Paste the contents of the public key file here.

After launching an instance, you login using the private key (the username might be different depending on the image you launched):

ssh -i cloud.key <username>@<instance_ip>

Was this article helpful?


Next article:

Use Ansible to deploy and setup an instance on OpenStack as a LAMP server

This tutorial describes how to use Ansible to automatically create, deploy and configure an Ubuntu-based OpenStack instance with Apache, MySQL and PHP. Prerequisites For this tutorial you'll need the following: An account on Fuga's OpenStack platform. A Linux machine (either an instance on OpenStack or your local workstation) capable of running ansible. A downloaded copy of your openrc.sh file. The CLI tools installed In this tutorial we'll assume an Ubuntu / Debian derived Linux distribution.