Working with SSH keys

The Coreix public cloud works with either passwords or preferably, keys. The solution uses standard key formats and you can specify your own public key if you wish. Alternatively, you can generate your own keys once you have an allocated resource solution and store them within the portal. Naturally, we do not keep copies of your private keys, we only ask for your public key.

You can use a tool like PuttyGen - Putty Key Generator or if you have a Linux terminal follow the subsequent commands.

You can generate a public and private RSA key pair with the following command:

openssl genrsa -des3 -out private.pem 2048

This command generates a 2048-bit RSA key pair and encrypts them with a password you provide and writes them to the private.pem file.

You need to next extract the public key file which is what you upload to Coreix cloud:

openssl rsa -in private.pem -outform PEM -pubout -out public.pem

It is imperative that you backup these files, if you lose the private key you will not be able to get access to your virtual machines. The private key is the equivalent of your password, as such, it should be kept in the same manner.

Once you have your public key you must go to your package via the main menu and you will see the following screen that shows your virtual machines. Choose the menu item on the left that says "SSH Keys"

 

Virtual Machine Without Public IP

 

You will be presented with the following page:

 

SSH Keys

 

From the SSH key section you can add new SSH keys - You should upload your PUBLIC KEY by opening it in a text editor and pasting all the data:

 

 Add SSH Key

 

Once you have added the key you will see it in the list below and be able to use this on newly created virtual machines:

 

Added SSH Keys

 

If you need further assistance please raise a ticket or e-mail direct on support@coreix.net.


Was this article helpful?

mood_bad Dislike 1
mood Like 0
visibility Views: 1142