# SSH key

> How to connect to a Linux server over SSH with a key, and how to add the key when ordering.

On Linux servers, SSH password login is disabled. You can sign in to SSH only with a key. The password works only for the [console](https://jezahost.com/en/help/vps/console).

## Adding the key when ordering

You give the SSH key when you order the server.

1. Order a server and go to the **Access details** section.
2. In **Username**, enter the name of the user to create on the server. The default is `vps_admin`.
   - The name must start with a lowercase letter or `_`.
   - It must be 3–32 characters long.
   - `root`, `admin`, `administrator` and `sysadmin` are not allowed.
3. Paste your public key into **SSH public key**. It looks like `ssh-ed25519 AAAA…`. This field is required for Linux.
4. The **VM password** is generated for you. Save it now: after ordering it is not shown in the portal again, and it is e-mailed to you only once.

If you don't have a key, click **How do I create a key?** next to the field. It has steps for Terminal, Windows, PuTTY and MobaXterm.

## Creating a key (Linux, macOS, Windows 10/11)

Run this in a terminal or PowerShell:

```
ssh-keygen -t ed25519
```

This creates two files:

- `~/.ssh/id_ed25519.pub`: the public key. Paste the contents of this file when ordering.
- `~/.ssh/id_ed25519`: the private key. Never share it.

## Connecting to the server

The server's IP address is on its service page. The username is shown in **Login user**.

```
ssh vps_admin@SERVER_IP
```

SSH (port 22) is open directly; no extra rule is needed. The server starts with the SSH key from your order. Signing in to SSH with a password is not possible.

The only port that is not opened directly is 3389 (Windows RDP). For RDP, choose another external port and add a [port forwarding](https://jezahost.com/en/help/vps/port-forwarding) rule.

## Adding another key or changing the key

The portal has no form for changing keys after ordering. Change them on the server itself:

1. Connect to the server.
2. Add the new key as a new line in `~/.ssh/authorized_keys`.
3. To remove an old key, delete its line from the file.

If you lost your key, sign in through the [console](https://jezahost.com/en/help/vps/console) and fix the file there. If you don't know the console password, set a new one with **Reset password**.

Note: [rebuilding the OS](https://jezahost.com/en/help/vps/reinstall-os) writes the key from your order again. Keys you added later are removed.

---

Source: https://jezahost.com/en/help/vps/ssh-key
Updated: 2026-11-15
