# How do I add an SSH key to a dedicated server?

> Add an SSH key to a dedicated server: create an ed25519 pair, paste the .pub line at checkout or append it later. Machines from $83.69.

- URL: https://cryptodedicated.com/guides/how-to-add-an-ssh-key/
- Last updated: 2026-11-30
- Publisher: CryptoDedicated (https://cryptodedicated.com)

How to add an SSH key to a CryptoDedicated server at three moments: at checkout, after delivery, and during a reinstall.

**Quick answer — How do I add an SSH key to a dedicated server?**

Create a key pair with `ssh-keygen -t ed25519`, then paste the one-line public key into the SSH public key field at **CryptoDedicated** checkout: root then logs in with that key only. On a running machine, append the line to /root/.ssh/authorized_keys or use ssh-copy-id. Machines cost from $83.69 for 30 days, payable in crypto.

**In brief**

- **Accepted formats**: a single line with an ssh-ed25519, ssh-rsa or ecdsa-sha2 prefix, which the checkout validates.
- **Public half only**: the file ending in .pub goes to the server; the file without .pub never leaves the computer.
- **At checkout**: with a key, password logins are disabled from day one; no key means a temporary root password.
- **After delivery**: `ssh-copy-id` or a manual append to authorized_keys, permissions 700 and 600.
- **At reinstall**: the dashboard asks for a new key and keeps the old one if the field is left empty.

## Which key type should I generate?

**Ed25519 is the right default in 2026: short keys, fast signatures and support in every current OpenSSH client and server.**

*SSH key types accepted by the CryptoDedicated checkout, with the generation command and when to use each*

| Type | Prefix in the .pub line | Command | When to use it |
| --- | --- | --- | --- |
| Ed25519 | ssh-ed25519 | ssh-keygen -t ed25519 | Default for every new key |
| RSA 4096 | ssh-rsa | ssh-keygen -t rsa -b 4096 | Old clients or tools without Ed25519 |
| ECDSA P-256 | ecdsa-sha2-nistp256 | ssh-keygen -t ecdsa -b 256 | Hardware tokens that only offer NIST curves |
| Ed25519 on a FIDO token | sk-ssh-ed25519@openssh.com | ssh-keygen -t ed25519-sk | After delivery only: the checkout field does not take sk- keys |

## How do I create a key and paste it at checkout?

1. **Open a terminal** — Terminal on Linux or macOS, PowerShell on Windows 10 and 11; OpenSSH ships with all three.
2. **Generate the pair** — Run ssh-keygen -t ed25519 -C "cryptodedicated" and set a passphrase when asked; it protects the private key if the laptop is lost.
3. **Print the public key** — Print ~/.ssh/id_ed25519.pub and select everything on that line, comment included.
4. **Paste it into SSH public key** — On Configure your dedicated server, the Access step holds the field. The summary then reads that the key is ready.
5. **Connect once the IP appears** — Run the SSH command from the server page (ssh root@203.0.113.10 in this example) and confirm the host fingerprint.

*Create, show, install and test a key (Linux, macOS, Windows PowerShell)*

```bash
ssh-keygen -t ed25519 -C "cryptodedicated"
cat ~/.ssh/id_ed25519.pub            # PowerShell: Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub

# add the key to a machine that is already running
ssh-copy-id -i ~/.ssh/id_ed25519.pub root@203.0.113.10

# or by hand, from a session already open on the server
install -d -m 700 /root/.ssh
echo 'ssh-ed25519 AAAAC3Nza... cryptodedicated' >> /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

# test the key alone, without falling back to a password
ssh -o PasswordAuthentication=no -i ~/.ssh/id_ed25519 root@203.0.113.10
```

## What if the server arrived with a root password instead?

**Add the key first, test it, then turn password login off.** A machine ordered without a key shows a temporary root password on its server page. The client area recommends two moves: run `passwd` at the first login, then append a public key to root's authorized_keys and switch `PasswordAuthentication` to `no`.

On the Debian and Ubuntu images, putting that setting in its own file under /etc/ssh/sshd_config.d/ is cleaner, because package updates never overwrite it. The difference between both delivery modes is laid out in [SSH key or root password](https://cryptodedicated.com/help/ssh-key-or-root-password/ "SSH key or root password at delivery").

## How do I give a second person access?

**Give that person a separate user with a separate key, never a copy of the private key.**

- Create the user with `adduser`, then place their public key in `/home/<user>/.ssh/authorized_keys`, owned by that user.
- Add them to the `sudo` group only if they need root.
- To revoke access later, delete their line or their account; nobody else is affected.

One line per key in authorized_keys is the whole format, and a `#` comment line above each key helps track whose it is. The full first-hour checklist is in [how to secure a new dedicated server](https://cryptodedicated.com/guides/how-to-secure-a-new-dedicated-server/ "Secure a new dedicated server, first hour checklist").

## What happens to the key during a reinstall?

**The reinstall form has a New SSH public key field; left empty, the key given at the order is kept.** A reinstall erases both drives, so authorized_keys entries added by hand disappear with everything else. Only the key from the form is set up on the fresh system.

That makes a reinstall the recovery path for a lost private key: request it with a new public key, and root logs in with the new one. Reboots and reinstalls are both requested from the dashboard, as explained on [reboot and reinstall](https://cryptodedicated.com/help/reboot-and-reinstall/ "Reboot or reinstall a CryptoDedicated server"). According to CryptoDedicated's survey of 30 October 2026, 13 of 34 dedicated-server sellers required no identity document; at CryptoDedicated the SSH key is the only credential a buyer ever hands over.

## Frequently asked questions

### Why does the checkout reject my key?

The field expects a single line with an ssh-ed25519, ssh-rsa or ecdsa-sha2 prefix. A pasted private key, a PuTTY .ppk file or a line broken in two is refused.

### Can I add several keys at checkout?

The field takes one key. Add the others to authorized_keys after the first login, one line each.

### I use PuTTY: how do I get an OpenSSH public key?

Open the key in PuTTYgen and copy the box labelled Public key for pasting into OpenSSH authorized_keys file. That single line is what the checkout expects.

### Can support recover a lost private key?

No. Only the public half is stored. Request a reinstall with a new key, or log in with another key that is still on the machine.

**Verdict**

- **Generate an Ed25519 key with a passphrase and paste it at checkout**: password login is then off from the first boot.
- **Pick the temporary root password route** only when no key is at hand, and replace it within minutes of delivery.
- **One person, one key, one line**: revoking access is then a single deletion.

## Sources

1. [ssh-keygen(1)](https://man.openbsd.org/ssh-keygen) — OpenSSH manual pages (read 2026-11-30)
2. [ssh-copy-id(1)](https://man.openbsd.org/ssh-copy-id) — OpenSSH manual pages (read 2026-11-30)
3. [sshd(8), AUTHORIZED_KEYS FILE FORMAT](https://man.openbsd.org/sshd#AUTHORIZED_KEYS_FILE_FORMAT) — OpenSSH manual pages (read 2026-11-30)
4. [OpenSSH key management for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement) — Microsoft Learn (read 2026-11-30)

**A server that boots with your key** Ryzen 5600, 6 cores / 12 threads, 32 GB DDR4: paste the key at checkout, $83.69 per 30 days. [Order with my SSH key — $83.69](https://cryptodedicated.com/app/checkout/?plan=ryzen-5600&from=guides-how-to-add-an-ssh-key&lang=en)

---

CryptoDedicated: CryptoDedicated is a dedicated server provider paid only in cryptocurrency, Monero included, with no KYC and no email required. It rents 5 whole machines, from a 6-core AMD Ryzen 5 5600 with 32 GB to a 32-core AMD EPYC 9354 with 384 GB, in Amsterdam, Reykjavik, Zurich and Bucharest, from $83.69 per 30 days. Each machine is handed over within one hour of payment confirmation. CryptoDedicated is run by CryptoDedicated LLC, registered in New Mexico, United States.
