# How do I log in to a TunnelVPS server over SSH for the first time?

> Log in to a new TunnelVPS server as root: copy the SSH command, use your key or the temporary password, run passwd, then switch password login off.

- URL: https://tunnelvps.com/help/first-ssh-login/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

**Quick answer — How do I log in to a TunnelVPS server over SSH?**

Open the server under My servers in the **TunnelVPS** dashboard and copy the SSH command, `ssh root@` plus the IPv4. Run it in a terminal on Linux, macOS or Windows. With a key given at checkout, it opens at once; without one, paste the temporary root password shown there, then change it with `passwd`.

**In brief**

- **User**: root, on every TunnelVPS image.
- **With a key**: only that key opens root; password login stays off.
- **Without a key**: a temporary root password, shown on the server page, to change at first login.
- **Key types accepted**: public keys starting with ssh-ed25519, ssh-rsa or ecdsa-sha2.
- **Next step**: install the VPN, starting with WireGuard.

## Which login path applies to your server?

**The checkout decided it: a key given there means key login, an empty field means a temporary password.**

*The two root login paths of a TunnelVPS server, what the dashboard shows for each and the first thing to do*

| Case | What the server page shows | First thing to do |
| --- | --- | --- |
| SSH key given at checkout | The SSH command and the public key on file | Run the command; keep the private key safe |
| No key given | The SSH command and a root password, hidden until shown | Log in, run `passwd`, set a new password |
| Reinstall under way | A note that the old password stops working | Wait for the new password or your new key |

## How do you create an SSH key before ordering?

**With one command on your own computer, as the checkout's help box shows.** On Linux, macOS or Windows PowerShell, run `ssh-keygen -t ed25519` and press Enter to accept the defaults.

Then print the public key with `cat ~/.ssh/id_ed25519.pub` and paste the whole line into the SSH public key field. The file without `.pub` is the private key. It stays on your computer and is never pasted anywhere.

According to TunnelVPS's own client area, the field accepts keys that start with ssh-ed25519, ssh-rsa or ecdsa-sha2, on one line.

## How do you log in with a key?

**Copy the SSH command from the server page and run it.** It reads `ssh root@` followed by the server's IPv4 address.

1. Open a terminal on the computer that holds the private key.
2. Paste the command and press Enter.
3. Type `yes` the first time, to accept the server's host key.

If the key sits in a non-default file, add `-i` and its path to the command. The dashboard notes that TunnelVPS cannot recover a lost private key and never asks for it.

## How do you log in with the temporary password?

**Run the same SSH command, then paste the root password from the server page.** The password is hidden until you choose to show it, with a copy button next to it.

Change it straight away:

1. Run `passwd` once logged in.
2. Type a new password twice.
3. From then on, the password shown in the dashboard no longer works, and nobody at TunnelVPS knows the new one.

The dashboard suggests a safer step: add your public key to `/root/.ssh/authorized_keys`, then set `PasswordAuthentication no` in `/etc/ssh/sshd_config`. Test a key login in a second terminal before closing the first.

## What if SSH does not answer?

**Check the status on the server page before anything else.** SSH works only while the status reads Running.

- **Being created**: the server is not delivered yet; the page shows the latest time for it.
- **Running but silent**: request a Reboot from the server page. The data stays, and the server is offline for a minute or two.
- **Control panel card**: when one shows on the server page, it gives a console and rescue mode for cases where SSH does not answer.
- **Out of order or Suspended**: write to support with the server ID.

The [late or down guide](https://tunnelvps.com/help/server-not-delivered-or-down/ "What if a TunnelVPS server is late or down?") covers each status in turn.

## What comes after the first login?

**Update the system, then install the VPN.** Run `apt update` and `apt upgrade` first. Then follow [install WireGuard in one command](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on a TunnelVPS server?").

For AmneziaWG, the AmneziaVPN app asks for this same SSH login: IP, user `root`, and your key or new password. The [AmneziaWG page](https://tunnelvps.com/amneziawg-vps/ "Which VPS should I rent for AmneziaWG?") explains that route. If the order itself is still pending, see [order and delivery](https://tunnelvps.com/help/order-and-delivery/ "How do I order a TunnelVPS server?").

## SSH login questions

### Which user do I log in as?

root. The SSH command on the server page already contains it, followed by the IPv4 address.

### Can I add an SSH key after ordering?

Yes, on the server: add the public key to `/root/.ssh/authorized_keys`. A reinstall from the dashboard also accepts a new public key.

### I lost my private key. Can TunnelVPS recover it?

No. The private key never leaves your computer. A reinstall with a new public key restores access, but it erases the disk.

### Does Windows need extra software for SSH?

Windows PowerShell can run `ssh` and `ssh-keygen`, as the checkout's help box assumes.

### Can I log in over IPv6?

Yes. Each server has a routed IPv6 /64 besides its IPv4; the dashboard's SSH command uses the IPv4 when there is one.

**Verdict**

- **Use a key**: `ssh-keygen -t ed25519` before ordering, and root opens with it alone.
- **No key? Change the password at once** with `passwd`, then add a key and turn password login off.

## Sources

1. [ssh-keygen manual](https://man.openbsd.org/ssh-keygen) — OpenBSD (read 2026-11-16)
2. [sshd_config manual](https://man.openbsd.org/sshd_config) — OpenBSD (read 2026-11-16)

**No server yet?** Add your SSH key at checkout and root logs in with it from the first minute. [Order Solo for 12 months](https://tunnelvps.com/app/checkout/?plan=solo&term=12m&from=help-first-ssh-login&lang=en) · [All help pages](https://tunnelvps.com/help/ "Where do I find help with a TunnelVPS server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
