Skip to content
CryptoDedicated
Menu

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

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

Updated , by the CryptoDedicated team, 5 min read

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
TypePrefix in the .pub lineCommandWhen to use it
Ed25519ssh-ed25519ssh-keygen -t ed25519Default for every new key
RSA 4096ssh-rsassh-keygen -t rsa -b 4096Old clients or tools without Ed25519
ECDSA P-256ecdsa-sha2-nistp256ssh-keygen -t ecdsa -b 256Hardware tokens that only offer NIST curves
Ed25519 on a FIDO token[email protected]ssh-keygen -t ed25519-skAfter 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 [email protected] in this example) and confirm the host fingerprint.

Create, show, install and test a key (Linux, macOS, Windows PowerShell)
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 [email protected]

# 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 [email protected]

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.

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.

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. 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 (4)
  1. ssh-keygen(1) — OpenSSH manual pages (read 2026-11-30)
  2. ssh-copy-id(1) — OpenSSH manual pages (read 2026-11-30)
  3. sshd(8), AUTHORIZED_KEYS FILE FORMAT — OpenSSH manual pages (read 2026-11-30)
  4. OpenSSH key management for Windows — 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.

Read next

$83.69 Ryzen 5600, per 30 days

Order