# How do you create and use an SSH key for a rented GPU?

> Make an ed25519 key with 1 command, paste the .pub line at launch, connect with ssh -p. RentGPUCrypto never sees your private key. No KYC.

- URL: https://rentgpucrypto.com/help/ssh-keys/
- Last updated: 2026-12-03
- Publisher: RentGPUCrypto (https://rentgpucrypto.com)

**Quick answer — Which SSH key does RentGPUCrypto need?**

**RentGPUCrypto** needs only your public SSH key: run `ssh-keygen -t ed25519`, copy the one line of `id_ed25519.pub` into the launch form, then connect with the command the instance page shows. The private key never leaves your computer. Instances run from $0.37 per hour, paid in Monero or other crypto.

**In brief**

- **Accepted types**: ssh-ed25519, ssh-rsa and ecdsa-sha2-nistp256, nistp384 or nistp521.
- **Where it goes**: the SSH public key field of the launch form, one key per launch.
- **Private key**: stays on your machine; RentGPUCrypto never sees it and staff never ask for it.
- **Lost key**: the instance cannot be reopened with it; delete and relaunch with a new key, after saving your data if you still can.
- **Connection**: the instance page gives a ready `ssh -p <port> <user>@<host>` command.

## Which key type should you generate?

*SSH key types accepted by the RentGPUCrypto launch form, with the command that creates each one*

| Type | Command | Public key starts with | Note |
| --- | --- | --- | --- |
| Ed25519 | ssh-keygen -t ed25519 | ssh-ed25519 | Short, fast, the default choice |
| RSA | ssh-keygen -t rsa -b 4096 | ssh-rsa | For old clients that lack Ed25519 |
| ECDSA | ssh-keygen -t ecdsa -b 521 | ecdsa-sha2-nistp521 | nistp256 and nistp384 are also accepted |

## How do you create a key on Linux or macOS?

**One command in a terminal: `ssh-keygen -t ed25519 -C "gpu-rental"`.** Press Enter to accept the default path, `~/.ssh/id_ed25519`, and type a passphrase when asked. The passphrase protects the private file if your laptop is lost.

The command writes two files. `id_ed25519` is private and stays where it is. `id_ed25519.pub` is the public half, one line long, and is the only thing the launch form wants.

*Create the key and print the public line*

```bash
ssh-keygen -t ed25519 -C "gpu-rental"
cat ~/.ssh/id_ed25519.pub
# ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... gpu-rental
```

## How do you create a key on Windows?

**Windows 10 and 11 ship the OpenSSH client, so the same command works in PowerShell.** Run `ssh-keygen -t ed25519`; the files land in `C:\Users\<you>\.ssh\`. Print the public line with `Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub` and copy it.

PuTTY users can create a key in PuTTYgen, then copy the text from the box labelled for OpenSSH authorized_keys. The `.ppk` file itself is not accepted by the form.

## What does the launch form check?

**It checks that the text is a single public key line and refuses anything else.** The field sits at the bottom of the form described in [launch an instance](https://rentgpucrypto.com/help/launch-an-instance/ "How to launch a GPU instance"). The line must start with `ssh-ed25519`, `ssh-rsa` or `ecdsa-sha2-nistp256`, 384 or 521, followed by the key data and an optional comment. A private key, which starts with `-----BEGIN`, is rejected with the message to paste a public key.

That check is a safety net. Pasting a private key anywhere on the web hands control of every server that trusts it to whoever reads it. If you did so by mistake elsewhere, generate a new pair.

## How do you connect once the instance runs?

**Copy the SSH command from the Connect over SSH card and run it.** It has the form `ssh -p <port> <user>@<host>`. If your key is not the default file, add `-i` and its path.

A block in `~/.ssh/config` saves typing on long rentals, and the same host alias then works for `scp`, `rsync` and port forwarding. The [move data guide](https://rentgpucrypto.com/guides/move-data-to-a-gpu-instance/ "How to move data to a GPU instance") uses it to copy checkpoints both ways.

*~/.ssh/config entry for a rented GPU (replace host, port and user with those of your instance page)*

```text
Host gpu
    HostName 203.0.113.7
    Port 22041
    User root
    IdentityFile ~/.ssh/id_ed25519
    ServerAliveInterval 60

# then: ssh gpu
# web UI on the GPU, opened locally: ssh -N -L 8188:localhost:8188 gpu
```

## What if you lose the private key?

**Then nobody, RentGPUCrypto included, can log in to that instance again.** The key is never stored by RentGPUCrypto, so it cannot be reset. The way out is to delete the instance and launch a new one with a new key; the disk of the old one is wiped.

Two habits avoid this. Keep the private key in a password manager or an encrypted backup. And once connected, add a second public key, from another device, to `~/.ssh/authorized_keys` on the instance.

According to RentGPUCrypto's own rules, staff never ask for a private SSH key, a seed phrase or the 16-digit account number. Harden the box further with the [secure a GPU instance](https://rentgpucrypto.com/guides/secure-a-gpu-instance/ "How to secure a rented GPU instance") guide.

## Should the private key have a passphrase?

**Yes, unless the key only ever lives on an encrypted machine you alone use.** A passphrase means a stolen copy of the file is useless on its own. It costs nothing day to day: the agent built into OpenSSH on Linux and macOS, or the OpenSSH Authentication Agent service on Windows, keeps the unlocked key in memory, so you type the passphrase once per session.

Load the key into the agent after logging in to your laptop, then every connection, copy and sync to the GPU goes through without a prompt. For a long training run, this also lets a tmux session on your side reconnect without asking again.

## SSH keys: common questions

### Can I log in with a password instead of a key?

No. The launch form only takes an SSH public key, and the instance is prepared with that key. Once connected you control the machine as root, but key login is the safer default to keep.

### Can I use the same key for several instances?

Yes. Paste the same public line at each launch. Many renters keep one key for all their GPU work and a second one as backup in authorized_keys.

### Why does the form reject my key?

It is probably a private key, a PuTTY .ppk file, or a line broken across several lines. Paste the single line of the .pub file, starting with ssh-ed25519, ssh-rsa or ecdsa-sha2-nistp.

### Does RentGPUCrypto keep a copy of my key?

Only the public key you pasted, which is needed to prepare the machine. It cannot open anything on its own. The private key never reaches RentGPUCrypto.

**Verdict**

- Generate an Ed25519 key with a passphrase and paste only the .pub line.
- Back up the private key and add a second key once connected.
- Lose the key and the instance is lost with it: copy your data out regularly.

## Sources

1. [ssh-keygen(1) manual page](https://man.openbsd.org/ssh-keygen) — OpenBSD / OpenSSH
2. [ssh_config(5) manual page](https://man.openbsd.org/ssh_config) — OpenBSD / OpenSSH
3. [Key-based authentication in OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement) — Microsoft

**Key ready? Get GPU-hours** 10 hours on an RTX 4090 for $3.70, paid in crypto. [Rent an RTX 4090](https://rentgpucrypto.com/app/checkout/?product=rtx-4090&plan=rtx-4090-10h&from=help-ssh-keys&lang=en) · [See all prices](https://rentgpucrypto.com/pricing/?from=help-ssh-keys "How much does it cost to rent a GPU per hour?")

---

RentGPUCrypto: RentGPUCrypto rents whole NVIDIA GPUs (RTX 4090, RTX 5090, L40S, A100 80GB, H100, H200) with root SSH for AI inference, Stable Diffusion and fine-tuning, paid in 7 cryptocurrencies including Monero, with no KYC and no email required.
