Ubuntu · Debian

GhostShield VPN for Linux

The desktop app and the gsvpn command for Ubuntu and Debian. One command installs it, and it updates with the rest of your system.

Paste this in a terminal:

Terminal
$ curl -fsSL https://www.ghostshield.ai/apt/install.sh | sh

Ubuntu 22.04 or later, or Debian 12 or 13 · 64-bit · you need sudo

Other ways to install

Then open GhostShield VPN from your apps, or type gsvpn login.

The app needs a plan. Every plan starts with a 14-day free trial. Choose plan

GhostShield VPN
The GhostShield VPN app on Linux, connected to Paris

What you can do

One command connects your whole computer. gsvpn status shows where you are.

Connect to the fastest server — bash

$ gsvpn connect fastest

Connecting to fastest…

Connected to Gravelines.

$ gsvpn status

● Connected — Gravelines

Server fr-gra-01 · 203.0.113.25

Tunnel 10.8.0.2 (openvpn)

Connected for 0m 00s

Mode whole computer

Protection ads, malware, family

Kill switch on

Ubuntu 22.04 · GhostShield 2.0.4 · IP addresses and latencies are examples

Every command

Every command works the same on a desktop, over SSH and in scripts, and takes --json and --help.

CommandWhat it does
gsvpn connect [fastest | last | LOCATION]Connect, or switch, to a location id, fastest, or last (the default).
gsvpn disconnectDisconnect.
gsvpn status [--watch]Connection state, location, server, traffic, filters and kill switch. --watch keeps printing changes.
gsvpn locations [--ping]The locations with their health and load; --ping measures the latency to each.
gsvpn login [--password]Sign in through the website (works over SSH), or with email and password.
gsvpn killswitch [on | off]Block traffic outside the tunnel while the VPN is in use.
gsvpn protection --ads | --malware | --familyThe ad, malware and adult-content filters (true or false).
gsvpn exec [--bypass] -- COMMANDRun one command through the VPN only, or outside it with --bypass.

Problems and questions

gsvpn says I’m not signed in

Run gsvpn login and approve the sign-in in your browser, on this computer or on your phone.

It stays on connecting, or says the server did not answer

Your network may be blocking VPN traffic. Try another location or another network, then run gsvpn doctor.

“Not allowed” over SSH, from a script or from an AI agent

Over SSH or in a script, add yourself to the ghostshield group once: sudo usermod -aG ghostshield $USER, then log in again. At the desktop, no sudo is needed.

“Subscription needed” or “device limit reached”

You need a plan or a free trial. One plan covers up to 10 devices; to free one, sign out on a device you no longer use (gsvpn logout or in the app).

Does it work on Fedora, Arch or ARM computers?

Not yet. For now it works on Ubuntu, Debian and systems based on them, on 64-bit Intel and AMD computers.

Do I need the desktop app?

No. The gsvpn command does everything on its own. The desktop app is simply a window on the same VPN, with the same settings.

GhostShield on your other devices: All downloads · Contact us