Managing SSH Keys

Creating an SSH Key

Linux

Run the following in your terminal:

ssh-keygen -t ed25519

By default, the key will be stored in $HOME/.ssh/id_ed25519, you can change the location if needed. You will be prompted for a passphrase next.

In general, it is a good idea to set a passphrase for your private key.

If you used the default key name it is now saved in $HOME/.ssh/id_ed25519.pub

To view your public key, type:

 cat .ssh/id_ed25519.pub

You can now add your public key to your project to be available when creating new instances.

Go to Management -> SSH Keys and paste your key into the window that looks like this:

Next, you can add your key, deploy your server and your key will automatically be allowed on your instance!

Windows

During the process of configuring an instance on Arkane Cloud, you must supply an SSH key to establish secure connectivity to your server.

This guide will demonstrate how to generate such a key utilizing PuttyGen.

During the Putty installation process, you have the option to include PuttyGen in the setup, so let's launch the application:

We choose Ed25519 as the type of key, and click 'Generate'. Move your cursor over the grey area, and your key will appear.

Don't forget to add a passphrase to your keys!

Copy the content from the Public key section at the top and store your private key in a secure location. PuttyGen can regenerate your public key from the private key, but the reverse is not possible; therefore, only the private key needs to be preserved.

During server creation, you can insert this output into the Key input field.

Following this, you can add your key, launch your server, and your key will be automatically authorized on your instance!


Adding/Removing SSH Keys on an Existing Instance

Access your instance through login. Modify the /root/.ssh/authorized_keys file by inserting the new key on a separate line, or delete any unwanted existing keys.

Last updated