Introduction
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 launch. 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 as 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 computer.
Prerequisites:
Create Key Pair
Key pairs are how you log in to your instance after it is launched.
- Go to the Fuga Cloud Dashboard
- Click on the Access tab in the bottom left corner
- Click on the button Create Key Pair
- Give your key pair a recognizable name and click on the create key pair button
Import Key Pair
key pairs are how you log in to your instance after it is launched. If you already have a key pair that you generated earlier, you can import and use that key pair.
- Go to the Fuga Cloud Horizon Dashboard
- Click on the Access tab in the bottom left corner
- Click on the button Import Key Pair
- Choose a Key Pair Name you will recognize and paste your SSH public key into the text field called Public Key.
Generate a Key Pair
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). You can import the contents of the public key in the text field at step 4 of Import key pair.
After launching an instance, you log in using the private key (the username might be different depending on the image you launched):
ssh -i cloud.key <username>@<instance_ip>