Skip to content
ImportantAmneziaWG 3.1: how to upgrade and how to roll back to 2.0Reinstalling the protocol, default parameters, rolling back to 2.0 — and why issued configurations stop working afterwards.Read the guide →

🧩 30x Errors in AmneziaVPN

The 30x series (301, 302 and similar) almost always means one thing: the app could not reach the server over SSH during installation. The server is usually alive — it is access that fails. Let's work through it, simplest first.

Start with the official documentation

It is worth checking the Amnezia documentation for your specific error first — it sometimes has case-specific hints. If the basics do not help, come back here.

1. State the SSH port explicitly

In the AmneziaVPN app, append the port to the IP address with a colon:

text
15.20.30.40:22

If you changed the SSH port in the security settings, use yours.

2. Install the protocol from behind another VPN

Your ISP may be blocking the installation scripts themselves. Turn on any other working VPN and run the protocol installation in Amnezia again.

Check split tunneling

In the other VPN, split tunneling must be off — or the AmneziaVPN app must be on the list of apps whose traffic goes through that VPN. Otherwise the installation goes out directly again and hits the same block.

3. Check whether the server is reachable

For a clean result, run the checks twice: first with the VPN off, then with it on (a different, working VPN).

  1. Open a terminal: macOS / Linux — Terminal; WindowsWin + R, cmd, Enter.
  2. Check packet flow: ping SERVER_IP
  3. Check SSH access: ssh root@SERVER_IP
    • Paste the password with Ctrl+Shift+V or a right-click.
    • Characters do not appear while typing — that is normal, just press Enter.
    • On the first connection, answer the trust prompt with yes and press Enter.

About ping on our servers

ICMP is closed deliberately, so ping will not answer even on a perfectly healthy server — judge by the ssh result. See Ping does not work.

What the result means:

ResultWhat it meansWhat to do
Unreachable both with and without VPNThe server is off or hungReboot it in the client area. If that does not help, write to us: Contacting Support
Reachable only with a VPN onYour ISP has blocked the server's IP or SSH itselfInstall protocols from behind another VPN. Sometimes an ISP only throttles ping and SSH while XRay or AWG work fine once installed
Always reachable in the terminal, but the app errors outDPI recognises the app's traffic during initial setup, or it is an app bugInstall the protocol from behind another VPN

4. Last resort: roll the app back

If the server definitely works but installation will not go through, the new client version may be at fault. Users report that installing the previous stable version from GitHub helps — for example 4.8.11.4 (without AWG 2.0 support). Remove the current AmneziaVPN version and install that one.

If you connect with an SSH key

A common cause of 30x is the wrong key format. The app expects a PEM key or an OpenSSH ED25519 key:

KeyFirst line of the fileWorks
RSA in PEM format-----BEGIN RSA PRIVATE KEY-----✅ yes
ED25519-----BEGIN OPENSSH PRIVATE KEY-----✅ yes, that header is normal for ED25519
RSA in the new OpenSSH format-----BEGIN OPENSSH PRIVATE KEY-----❌ this is what the parser usually complains about

RSA in the wrong format

bash
ssh-keygen -p -m PEM -f /path/to/your/private/key

Copy the key first

The command overwrites the existing file, converting it to PEM. Make a copy beforehand so nothing is lost.

A PuTTY key (.ppk)

  1. Open PuTTYgen.
  2. Conversions → Import key, pick your .ppk.
  3. Conversions → Export OpenSSH key — the saved file is the PEM key you need.

A different algorithm (ECDSA, DSA)

Such keys cannot be converted — the underlying maths differs. Generate a new pair, preferably ED25519, and add the public key to the server:

bash
ssh-keygen -f id_ed25519 -C "amnezia" -N "" -q -t ed25519
FlagMeaning
-f id_ed25519save the private key to the file id_ed25519
-C "amnezia"a label to identify the key
-N ""no passphrase
-qquiet mode
-t ed25519key type ED25519

After changing the password, user, or login method

If you hardened the server — changed the SSH password, moved to keys, or switched from root to a regular user — the app will lose its connection: it cannot edit saved connection details.

What to do:

  1. Remove the server from the app and add it again with the current credentials.
  2. If protocols were already installed, do not install them again — in the server settings press “Check the server for previously installed Amnezia services”.

What each code means

Below is the breakdown of codes 300–305: what the error means and what helps in that particular case.

300 — SshRequestDeniedError

SSH request was denied. Occurs when the server connection data is incorrect, the server lacks resources, or a newer AmneziaVPN version is required.

  1. Verify that the entered data is correct.
  2. Verify that the server is reachable and healthy: free disk space, available memory, not frozen, and responding over SSH.
  3. Restart the server from the hosting panel, then retry.
  4. Update the app to the latest version from the official download page.

301 — SshInterruptedError

SSH request was interrupted. Occurs when adding a new server, connecting to an already added one, or changing its settings.

  1. Check the stability of your internet connection and retry.

302 — SshInternalError

SSH internal error. The causes vary:

  • Amnezia Premium or Amnezia Free — the connection is created on an iOS device running an outdated app version 4.8.2.0 or lower.
  • Self-hosted — the server IP is blocked by the ISP; the server was shut down by the hosting provider; the connection data was entered incorrectly.

For Premium or Free:

  1. Update the app in the App Store. If it is unavailable — the app is hidden in the Russian App Store, for instance — see Installing AmneziaVPN on iOS in Russia.

For a self-hosted server:

  1. Fully restart the application and retry the action.
  2. Try the same action from another network: mobile internet, another provider, or through another VPN if needed.
  3. If the error only occurs on one network while another succeeds, the server IP is blocked by that ISP. Changing the server IP or renting a server with a different IP will help.
  4. If the error occurs for any server action together with errors 300 or 305, additionally check SSH availability and the server status.

303 — SshPrivateKeyError

Invalid private key or invalid passphrase entered. Occurs when adding a server, connecting to one, or changing its settings.

  1. Verify that the key and its passphrase are correct.

304 — SshPrivateKeyFormatError

The selected private key format is not supported. Supported types are openssh ED25519 keys and keys in PEM format.

  1. Check the key format — conversion steps are in the SSH key format section above.

305 — SshTimeoutError

Timeout connecting to server. Occurs when connecting to the server or changing its settings: port 22 may be closed or blocked, or the server may be unreachable for some reason.

  1. Make sure the server is powered on and answers over SSH.
  2. Verify the username, password, IP address, and server port (after a colon).
  3. Make sure you specify the SSH port the server actually accepts connections on: you may have changed it, or the default port 22 may be blocked.
  4. Restart the server from the hosting panel.
  5. Retry the action from another network.

A step-by-step walkthrough of 305 — VPN not connecting.

If nothing helped

Write to us and we will sort it out together:

ChannelAddress
Ticket in the client areamy.amnezia.host — the main channel
Emailsupport@amnezia.host
Support bot on Telegram@amnezia_hosting_bot
Community chat (Russian)t.me/amnezia_vpn
Community chat (English)t.me/amnezia_vpn_en

What to include so the first reply is already on point — details checklist.