Create an SSH Key
A step-by-step guide to creating an SSH Key in the portal
Last Update hace 2 meses
An SSH Key allows you to connect to an Instance from your computer using an SSH client like Putty. You can also connect to an Instance using a password, however, using an SSH key is recommended since it is a much more secure way of connecting to instances across public networks.
Note: SSH Key is not required for creating an instance, but only for connecting to instances from your computer.
To create an SSH Key, expand the Cloud menu and click on SSH Keys
On the bottom-right, click on the + Button.
The Create new ssh key Popup appears.
There are three ways to generate SSH Keys in Windows 10:
1. Use OpenSSH client tool
2. Use PuttyGen tool
3. Use the Generate New Key button on the Popup
Option 1: Use the OpenSSH client
1. Make sure that OpenSSH client is installed in Windows Features. It is installed by default.
2. Open a Command Prompt with Administrator Privileges
3. Run the following command:
4. The keys are generated and stored in the path you specify or the default path is none is specified.
a. Private key is saved in id_rsa file
b. Public key is saved in id_rsa.pub file.
5. Now paste the contents of the public key file on the key content textbox in the Popup.
Option 2: Use the PuttyGen tool
PuttyGen is a tool used to generate SSH Keys and it usually ships along with Putty, and therefore can be found in the same folder as Putty.
Open command prompt and type "puttygen.exe"
On the PuttyGen main window:
a. On the Parameters section at the bottom, select the type of key to generate and the bit size. Higher the bits selected, stronger the key. The recommended type is RSA with a minimum of 2048 bits.
b. Click the Key menu and ensure that the correct encryption options are chosen,
c. Click the Generate button.
The Public key and the Private key are generated and stored in memory until you save them to files on disk.
Click on the Save private key button to save the Private key to a file on disk. Private keys are usually saved with the .ppk extension or without any extension. Private keys are sensitive information and must not be shared with anyone. It is recommended to use a Key passphrase to encrypt the file.
Click on the Save public key button to save the Public key to a file on disk. Public keys are usually saved with the .pub extension. You can paste the contents of the Public key file in the key content textbox of the Create new ssh key Popup.
Option 3: Use the Generate New Key button
Copy the generated keys and save them in separate files locally:
1. Public key is generally stored with the .pub extension
2. Private key is generally stored with the .ppk extension or without extension. This file will be used by SSH clients like Putty to connect to the instance later.