Knowledge Base

« Compute

CloudVPS Compute SSH Keys


SSH Keys are used to establish secure client-server connections via SSH (shell acces) to running servers in the CloudVPS Cloud. An SSH Key pair consists of both a public and a private key.

CloudVPS uses public–key cryptography to encrypt and decrypt login information. Public–key cryptography uses a public key to encrypt a piece of data, such as a password, then the recipient uses the private key to decrypt the data. The public and private keys are known as a key pair.

CloudVPS stores the public key only, and you store the private key. Anyone who possesses your private key can login to your server, so it's important that you store your private keys in a secure place.

To log into your server, you must create a key pair, specify the name of the key pair when you launch the instance, and provide the private key when you connect to the instance. For Linux server, you can configure either a root password or an SSH key to log in.

Example of a Public key

On a Linux/UNIX server, the public key is placed in an entry within ~/.ssh/authorized_keys. This is done at first boot and enables you to securely access your server without passwords. You can open this file in an editor to view the public key for your key pair. The following is an example entry for the key pair named “my-key-pair”. It consists of the public key followed by the name of the key pair.

For example:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClKsfkNkuSevGj3eYhCe53pcjqP3maAhDFcvBS7O6Vhz2ItxCih+PnDSUaw+WNQn/mZphTk/a/gU8jEzoOWbkM4yxyb/wB96xbiFveSFJuOp/d6RJhJOI0iBXrlsLnBItntckiJ7FbtxJMXLvvwJryDUilBMTjYtwB+QhYXUMOzce5Pjz5/i8SeJtjnV3iAoG/cQk+0FzZqaeJAAHco+CY/5WrUBkrHmFJr6HcXkvJdWPkYQS3xqC0+FmUZofz221CBt5IMucxXPkX4rWi +z7wB3RbBQoQzd8v7yeb7OzlPnWOyN0qFU0XA246RA8QFYiCNYwI3f05p6KLxEXAMPLE my-key-pair

Creating an SSH Key Set

To generate a new SSH Key on a Linux machine.
1. ssh-keygen -t rsa -C “”
2. Enter the file in which to save the key (/home/<username>/.ssh/id_rsa): [Press enter]

To generate a new SSH key on a Windows machine follow the guide below:
1. Use a tool PuTTYgen ( to generate a SSH Key
2. Select SSH-2 RSA and 4096 bits. Click on the Generate key.
3. Enter an appropriate/descriptive Key comment
4. Keyphrase may be left empty
5. Click Generate
6. Save the Key to your Documents folder.

Adding a public SSH Key to CloudVPS Compute

1. Log in to
2. At the navigation pane under Compute > Advanced, click SSH Keys.
3. Click New key.
4. Fill in a name and paste your key material in the Key form.
5. Click Create Key.

Note: adding a new SSH key wil only take effect after the virtual server is rebooted.

Deleting an SSH Key from CloudVPS Compute

1. Log in to
2. At the navigation pane under Compute > Advanced, click on SSH Keys.
3. Click the ssh key you would like to delete.
4. Click on the Delete button to delete the key.
5. You are asked to confirm the deleting of the key. Click Ok.

Note: Removing a key from the interface does not revoke authorization to any CloudVPS Cloud servers previously launched with the key. The key will be unavailable for new servers, though.

VPS Bestellen
VPS Bestellen