---
title: "How to Add and Use SSH Keys on Your VPS · CloudSat docs"
description: "Create an SSH key pair, add the public key to your CloudSat account, install it on new servers at deploy, and add or remove keys on servers already running."
url: https://cloudsat.io/docs/manage-ssh-keys
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

# Add and use SSH keys

Create an SSH key pair, add the public key to your CloudSat account, install it on new servers at deploy, and add or remove keys on servers already running.

CloudSat team Updated Nov 18, 2026 3 min read

SSH keys let you sign in to Linux and BSD servers without typing a password. You store public keys on the **SSH keys** page, and the ones you tick in the deploy form are installed on the new server. Windows servers use Remote Desktop and their password instead.

## Create a key pair

On macOS, Linux or Windows (in PowerShell), run:

```bash
ssh-keygen -t ed25519 -C "laptop"
```

Accept the default file and set a passphrase. You get two files: `~/.ssh/id_ed25519`, the private key, which never leaves your computer, and `~/.ssh/id_ed25519.pub`, the public key, which you can share.

## Add the public key to your account

1. Open **SSH keys** in the **Access** group of the sidebar.
2. Click **Add SSH key**.
3. In **Name**, say where the private key lives, for example `laptop` or `ci-runner`.
4. In **Public key**, paste the whole content of the `.pub` file: a single line that starts with the key type.
5. Click **Add key**.

The key appears in the list with its **Fingerprint**, its **Type** and the date it was **Added**. To check that it matches the file on your computer, compare with:

```bash
ssh-keygen -lf ~/.ssh/id_ed25519.pub
```

Accepted types are `ssh-ed25519`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, and the hardware-key types `sk-ssh-ed25519@openssh.com` and `sk-ecdsa-sha2-nistp256@openssh.com`.

## Install it on a new server

In step 4 **Access** of the deploy form, tick one or more keys under **SSH keys**. If your account holds a single key, it is ticked for you. After the deploy, the server's **Access** tab shows how many keys were installed, under **SSH keys on this server**.

The root password is generated anyway, so you always keep a second way in ([Find or reset the root password](https://cloudsat.io/docs/root-password)).

## Add a key to a server that already runs

The keys you tick at deploy are installed when the server is built, and again if you rebuild it. A key you add to your account later does not reach servers that already run, so copy it yourself:

```bash
ssh-copy-id -i ~/.ssh/id_ed25519.pub root@203.0.113.24
```

`ssh-copy-id` appends the key to `/root/.ssh/authorized_keys`. Windows has no `ssh-copy-id`; the PowerShell equivalent is in [Connect over SSH from Windows](https://cloudsat.io/docs/ssh-from-windows).

## Remove a key

- **Remove** on the **SSH keys** page deletes the key from your account only. Servers that already have it keep it until you remove it from them.
- To revoke it on a server, delete its line from `~/.ssh/authorized_keys`. List the keys in that file with their fingerprints first:

```bash
ssh-keygen -lf ~/.ssh/authorized_keys
```

Repeat this on every server that has the key, for example when a laptop is lost or someone leaves the team.

## Troubleshooting

- "This does not look like an OpenSSH public key." You pasted a private key or a key in PuTTY's own format. Paste the single line from the `.pub` file. In PuTTYgen, copy the key from the text box at the top of the window, which holds it in the one-line OpenSSH format meant for `authorized_keys`.
- "This key is already in your account." The same key is stored already, perhaps under another name.
- *The server still asks for a password.* The key was not ticked at deploy, or your computer offers another key. Run `ssh -v root@203.0.113.24` to see which keys are tried, and use `ssh -i` to pick the right one.
- *You lost the private key.* Sign in with the root password from the **Access** tab, create a new key pair and install it.

You can also list, add and delete keys through the API: `GET` and `POST /api/v1/ssh-keys`, and `DELETE /api/v1/ssh-keys/<id>`. See the [API reference](https://cloudsat.io/docs/api).

- [Connect to a Windows server with Remote Desktop](https://cloudsat.io/docs/connect-with-remote-desktop): Previous Connect to a Windows server with Remote Desktop
- [Find or reset the root password](https://cloudsat.io/docs/root-password): Next Find or reset the root password
