Tutorials Managing SSH keys

Managing SSH keys

SSH keys are a generated pair of long and practically impossible to break codes that allow automated user authentication. 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 own computer.

The SSH keys feature at your UpCloud control panel provides an easy public key management and allows you to apply the authentication method to any new server.

SSH keys list

Adding keys

To add new keys to your list, go to the SSH Keys section under your Account section. Click the Add new button at the top of the page to import a new SSH key. This opens an empty SSH key editing window. Copy your public key to the SSH key text box, the name field is automatically filled with the key name, but you can also assign the name as you wish.

Add SSH key

With the key set and named, click the Save the SSH key button at the bottom to confirm the changes.

Each key you add to the control panel will appear on the SSH keys list. Keys can be edited or deleted on the list freely.

SSH key added

Applying keys at deployment

Public keys that are stored at your control panel can be directly applied to cloud servers at deployment. Click the key names to select the keys you wish to use on the new server.

Include SSH key at deployment

You can also click the Add new button to import your keys right at the deployment without losing your server setup selections. This opens the key editing window, copy in your public key and click the Save the SSH key.

The keys are added to the default root account and allow you to harden the server security right from the get-go. If you wish to add SSH keys to other user accounts, check out our Initialization script feature to automatically create new usernames, update the system, and perform other setup tasks at the first boot up.

Choosing login methods

You can choose to allow authentication to the server using either password, SSH keys, or both. This is selected in section Optionals and Allowed login methods. Adding an SSH key and disabling as password login for the root account are recommended steps for securing your Linux server.

Authenticate only SSH keys

If you have not generated SSH key pairs before, you can find additional instructions for how to use SSH keys on your cloud server about adding SSH keys after deployment.

Leave a Reply

Your email address will not be published. Required fields are marked *

Locations

Helsinki (HQ)

In the capital city of Finland, you will find our headquarters, and our first data centre. This is where we handle most of our development and innovation.

London

London was our second office to open, and a important step in introducing UpCloud to the world. Here our amazing staff can help you with both sales and support, in addition to host tons of interesting meetups.

Seattle

Seattle is our 4th and latest office to be opened, and our way to reach out across the pond to our many users in the Americas.

Singapore

Singapore was our 3rd office to be opened, and enjoys one of most engaged and fastest growing user bases we have ever seen.