# How do I install AmneziaWG on a VPS?

> How to install AmneziaWG on a VPS from the AmneziaVPN app over SSH, in 6 steps: server IP, root login, SSH key, Automatic install, then a new port.

- URL: https://tunnelvps.com/guides/how-to-install-amneziawg-on-a-vps/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

The AmneziaVPN app logs in to the server over SSH and installs AmneziaWG for you. This page covers the fields, the key, and the port change the docs advise.

**Quick answer — How do I install AmneziaWG on a VPS?**

Here is how to install AmneziaWG on a VPS: open the AmneziaVPN app, add a Self-hosted VPN, enter the **TunnelVPS** server IP, the user `root` and your SSH private key, then pick Automatic. The app connects over SSH and installs AmneziaWG in one pass. Afterwards, the Amnezia docs advise moving it to a port up to 9999.

**In brief**

- **Installer**: the AmneziaVPN app on Windows, macOS, Linux, Android or iOS, connecting over SSH.
- **Server**: KVM, public IPv4, x86-64, 1 core, 1 GB RAM and 10 GB disk at least.
- **Systems**: Ubuntu 22.04/24.04 and Debian 12/13 are the officially supported ones.
- **After install**: change the random default port to one up to 9999.

## What are the steps in the AmneziaVPN app?

*AmneziaWG install on a TunnelVPS server from the AmneziaVPN app, 6 steps, per docs.amnezia.org read 16 November 2026*

| Step | Where | What to do |
| --- | --- | --- |
| 1 | TunnelVPS checkout | Order a server with Debian 12/13 or Ubuntu 22.04/24.04 and your SSH public key. |
| 2 | Your device | Install the latest AmneziaVPN app from the official download page. |
| 3 | AmneziaVPN | Click the plus icon, or Get Started, then choose Self-hosted VPN. |
| 4 | AmneziaVPN | Enter the server IPv4, the SSH user `root` and your private key or password. |
| 5 | AmneziaVPN | Choose Automatic (AmneziaWG only) or Manual, then Continue. |
| 6 | AmneziaVPN | When the connection appears, change the AmneziaWG port to one up to 9999. |

## What is AmneziaWG and when is it worth it?

**AmneziaWG is a fork of WireGuard-Go that adds junk packets and changes headers to resist deep packet inspection.** It keeps WireGuard's speed but looks less like WireGuard on the wire. It is released under the MIT licence.

Use it when plain WireGuard connects at home but fails on a filtered network. That is when people search for how to install AmneziaWG on a VPS. On an open network, standard WireGuard is simpler. The [AmneziaWG VPS page](https://tunnelvps.com/amneziawg-vps/ "What is an AmneziaWG VPS and when is it needed?") explains when it pays off.

## Which VPS does AmneziaWG need?

**A KVM server with a public IPv4, an x86-64 CPU, 1 core, 1 GB of RAM and 10 GB of disk.** TunnelVPS read these figures in the Amnezia docs on 16 November 2026. The same page recommends 2 GB of RAM and 2 vCPU for 10 or more simultaneous connections, and requires systemd.

The four TunnelVPS images are exactly the four systems Amnezia lists as officially supported. Solo (1 vCPU / 2 GB / 40 GB) covers the minimum; Duo and Home exceed the recommended level.

## Should the app log in with a key or a password?

**With your SSH private key, when you gave a public key at checkout.** Root logs in over SSH. A public key given at checkout is installed and password login stays off; without a key, the team sets a temporary root password, shown in the dashboard, to change with passwd at first login. So on a server ordered with a key, the app needs that key's private half.

The app runs on your own device and uses the key only to open the SSH session. The key never goes to TunnelVPS. Without a key, change the temporary password first, as the [first SSH login guide](https://tunnelvps.com/help/first-ssh-login/ "How do I log in to a TunnelVPS server over SSH?") explains, and give the app the new one.

## What does the app do on the server?

**It sends the install commands over SSH and creates a connection with full access to the server.** Automatic installs only AmneziaWG; other protocols can be added later from the same app. Manual lets you pick one protocol and click Install.

If you click Skip setup instead, the app creates an empty connection and sends no commands. On a server that already runs Amnezia, open the connection's gear icon, go to Management, and ask it to check the server for previously installed services.

## Why change the AmneziaWG port after the install?

**The docs say AmneziaWG picks a random port by default and advise one up to 9999, such as 585 or 1234.** Make sure no other service on the server uses the new number. If you run UFW, allow the new UDP port before switching.

The [UFW port guide](https://tunnelvps.com/guides/how-to-open-the-wireguard-port-in-ufw/ "How do I open the WireGuard port in UFW?") shows the rule format. Anyone checking how to install AmneziaWG on a VPS with a firewall already on should open the port first, or the app will lose the tunnel.

*Allow a new AmneziaWG port in UFW (example port 1234)*

```bash
ufw allow 1234/udp
ufw status verbose
```

## Can AmneziaWG run next to WireGuard and Outline?

**Yes, each on its own port.** A household often keeps WireGuard for most devices and AmneziaWG for the one phone that travels through filtered networks. Inbound UDP and TCP ports are open on the server; the customer chooses the VPN port and sets the firewall.

The [protocol comparison](https://tunnelvps.com/wireguard-vs-outline-vs-amneziawg/ "WireGuard, Outline or AmneziaWG: which should I use?") helps decide which to install first. Every plan has the same price in all six cities.

## AmneziaWG install questions

### Do I need a terminal to install AmneziaWG on a VPS?

No. The AmneziaVPN app does the install over SSH. A terminal only helps for updates and firewall rules.

### Which is the best VPS for AmneziaWG in 2026?

One that matches the Amnezia list: KVM, public IPv4, x86-64, and Ubuntu 22.04/24.04 or Debian 12/13. Size it by the number of simultaneous connections.

### Is AmneziaWG the same as WireGuard?

It is a fork of WireGuard-Go with extra junk packets and header changes, so standard WireGuard apps cannot connect to it.

### Which apps connect to an AmneziaWG server?

The AmneziaVPN app on Windows, macOS, Linux, Android and iOS, released under GPL-3.0.

### What if the install fails halfway?

Check the SSH login by hand first. If the server misbehaves, a reinstall from the dashboard gives a clean system, but it erases the disk.

**Verdict**

- **The app does the work**: IP, `root`, key, Automatic.
- **Change the port and open it in the firewall** right after the install.

## Sources

1. [Amnezia: install VPN on your server](https://docs.amnezia.org/documentation/instructions/install-vpn-on-server/) — Amnezia (read 2026-11-16)
2. [Amnezia: supported Linux systems for a VPS](https://docs.amnezia.org/documentation/supported-linux-os-for-vps) — Amnezia (read 2026-11-16)
3. [amneziawg-go](https://github.com/amnezia-vpn/amneziawg-go) — GitHub (read 2026-11-16)
4. [AmneziaVPN client](https://github.com/amnezia-vpn/amnezia-client) — GitHub (read 2026-11-16)
5. [ufw(8) manual page](https://manpages.ubuntu.com/manpages/noble/en/man8/ufw.8.html) — Ubuntu (read 2026-11-16)

**Get a server for AmneziaWG** Home clears Amnezia's recommended level for 10 or more connections, at $6.37 a month on 12 months. [Order Home for 12 months](https://tunnelvps.com/app/checkout/?plan=home&term=12m&image=ubuntu-24.04&from=guides-how-to-install-amneziawg-on-a-vps&lang=en) · [AmneziaWG VPS overview](https://tunnelvps.com/amneziawg-vps/ "Which VPS should I rent for AmneziaWG?")

---

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.
