Linux VPN for Ubuntu, Debian, Fedora & More
- Use CLI on Ubuntu, Debian, Fedora, Alma & Rocky
- Set up via NetworkManager on Linux Mint & more
- Choose between OpenVPN and WireGuard®
Supported on:
How to Get CyberGhost VPN for Ubuntu, Fedora & Other Linux Distros
You don’t need to be an Arch wiz to improve your Linux security.
Get CyberGhost VPN and create your account.
Download configuration files for your Linux distro.
Follow the steps for your distro and set up the VPN.
What CyberGhost VPN Does on Linux
Encrypt Linux Traffic Outside the Browser
Linux often has a lot of updates, package managers, or apps creating background traffic. A Linux VPN encrypts your data at the OS level to improve the security for the traffic leaving your device (and not only browser traffic). Once CyberGhost VPN is on, it runs without changing how you use Linux day to day.
Linux DNS resolver utilities like "systemd-resolved" can mishandle your DNS requests, forcing them outside the VPN tunnel. To prevent DNS leaks, CyberGhost VPN routes your DNS requests to its servers. If the leaks persist, you can change the DNS servers your device uses (the process differs across distros).
Prevent DNS Leaks
Boost Privacy on Public Wi-Fi
Use your Linux laptop on open hotspots without worrying you’ll expose your browsing activity on an unsecured network. CyberGhost VPN encrypts your data before it hits public Wi-Fi. The encrypted tunnel makes it more difficult for the network admins, hotspot owners, and ISP to see the site domains you visit.
CyberGhost VPN offers two setup methods for Linux: a CLI app for 5 distros (Ubuntu, Debian, Fedora, Alma, Rocky) or NetworkManager (a tool suite on many distros). The CLI app connects and switches servers via terminal. NetworkManager involves configuring OpenVPN and connecting through the device’s network settings.
Pick the Setup Method for Your Linux Distro
Why Choose CyberGhost VPN for Linux?
Strong Encryption Standards
Encrypt Linux traffic with modern encryption such as AES 256-bit and ChaCha20.

Verified No-Logs Policy
Rely on a VPN with a strict No-Logs policy, independently audited by Deloitte in 2025.

Modern VPN Protocols
Choose between VPN protocols to find the balance of speed and security that suits you best.
No VPN Caps or Speed Limits
Browse, download, update, stream, and more without your VPN holding you back.
RAM-Only Servers
Improve privacy through VPN servers that wipe any remnant browsing history upon reboot.
Easy-to-Use CLI App
Connect to a specific location or specialized server with a simple command.
Version List
- Debian 12 (Bookworm) and newer
- Ubuntu 22.04 and newer
- Fedora 34 and newer
- AlmaLinux & Rocky Linux (carried over from CentOS support)
Device Types
- Desktop computers
- Laptops
- Servers
- Linux virtual machines (VMs)
Connect to Servers Across 100 Countries
Picking a server near you typically nets the lowest added latency. For a list of servers and their codes, run sudo cyberghostvpn --traffic --country-code. To connect, run sudo cyberghostvpn --traffic --country-code XX --connect, where XX is the country code.
CyberGhost VPN also has groups of specialized servers, optimized for stable connections for a variety of online activities. Run sudo cyberghostvpn --help to get the exact commands you need to connect to our optimized servers.
| Total Cities | 126 |
|---|---|
| Total Countries | 100 |
| Dedicated IP Locations | 21 |
Use CyberGhost VPN on Other Devices
CyberGhost VPN has native apps for Windows, macOS, iOS, and Android, as well as devices like the Amazon Fire TV Stick and Android TVs. In addition to the Linux versions listed above, you can configure CyberGhost VPN on other popular distros like Mint.
CyberGhost VPN lets you connect on 7 devices at once, so you can simultaneously improve security on your smartphone, work laptop, home server, and other devices.
Want to protect a device without native VPN support? Configure CyberGhost VPN on a compatible router to cover everything connected to your Wi-Fi, including game consoles, Smart TVs, and Wi-Fi gadgets around the house.
Supported on:
Set Up the CyberGhost VPN CLI App
Step 1: Get CyberGhost VPN
Subscribe to CyberGhost VPN and create an account.
Step 2: Get Configuration Files
Go to Download Hub in your account. Choose your Linux distro from the dropdown list and download the installation.
Step 3: Run the Installation
Extract the installation files and open the terminal. Use cd to enter the folder with the files, if necessary.
Step 4a: Ubuntu & Debian
On devices running Ubuntu or Debian, run sudo bash install.sh to install the CLI app.
Step 4b: Fedora, Alma, Rocky
On devices running Fedora, AlmaLinux, or Rocky Linux, run sudo chmod +x install.sh and sudo ./install.sh.
Step 5: Enter Your Credentials
When prompted, type in your CyberGhost VPN credentials and log in. You can now run a command to connect.
Common Commands for the CLI App
| Action | Command |
| Get a list of all available commands | sudo cyberghostvpn --help |
| Pull up a list of countries | sudo cyberghostvpn --traffic --country-code |
| Connect using OpenVPN | sudo cyberghostvpn --country-code XX --openvpn --connect |
| Connect using WireGuard® | sudo cyberghostvpn --country-code XX --wireguard --connect |
| Check if you’re connected | sudo cyberghostvpn --status |
| Disconnect from the VPN | sudo cyberghostvpn --stop |
Note: Replace “XX” in the commands with the two-letter code of the country servers you want to connect to. You can see the whole list of country codes in the terminal or on our support page.
Set Up a Linux VPN via NetworkManager
Step 1: Install OpenVPN
Install the network-manager-openvpn package and the plugin for your environment, like GNOME or KDE.
Step 2: Get Configuration Files
Sign in to CyberGhost VPN and go to My Account > VPN > Configure Device. Create and export the configuration files.
Step 3: Note Login Details
Write down the server address, username, and password displayed on the configuration screen.
Step 4: Add VPN Connection
Go to Network Settings, create a new VPN connection, import the files, and enter the noted details when prompted.
Step 5: Connect to the VPN
Open NetworkManager, select the VPN connection you created, and click Connect.
Step 6: Check the Connection
Confirm your device’s public IP address using the curl utility or a third-party checker site.
FAQ
To connect to a VPN using the Linux NetworkManager, download a VPN configuration file from CyberGhost VPN. Go to Network Settings, create a new VPN connection, and import the file when prompted. Type in other relevant details and save the VPN profile. Then, open NetworkManager and click the VPN profile you created to connect.
The simplest way is to download the CyberGhost VPN Linux CLI app from the account dashboard. Install the CLI app through a terminal command and run it. You can connect to a server of your choice using the command sudo cyberghostvpn --country-code XX --connect, replacing “XX” with the code for the location you want.
No, but CyberGhost VPN supports many popular Linux distributions. You can set up the CLI app on distros like Ubuntu, Debian, Fedora, AlmaLinux, and Rocky Linux. Alternatively, you can use services like NetworkManager to import its configuration files and create a VPN connection profile on your device.
No, like many other Linux distros, Ubuntu lacks a built-in VPN app. It supports VPN connections through system tools like NetworkManager. You can follow our instructions for setting up an OpenVPN connection on your Ubuntu device.
A VPN for Linux helps secure your device’s traffic, covering what happens in the browser and out of it. Linux runs updates, services, and command-line tools in the background, and a VPN encrypts that traffic at the OS level. It’s a simple way to help keep your device’s IP address and connection details more private.
The process of enabling a VPN on Linux can differ from distro to distro. CyberGhost VPN has CLI apps for Ubuntu, Debian, Fedora, AlmaLinux, and Rocky Linux. You can install the package and run it through the terminal. Other distros like Mint require you to set up CyberGhost VPN’s configuration through software like NetworkManager.
You can check whether your Linux device has an open VPN connection in several ways. Go to NetworkManager to check for an active VPN tunnel. Use the terminal to check for active tunnel interfaces (usually tagged something like “tun0” or “wg0”). Run an online IP address checker or IP leak test to see if your public IP address differs from your usual one.
Yes, you can install CyberGhost VPN using the command line. You need to download the official Linux CLI package from your account dashboard, extract the files, navigate to the folder in your terminal, and run the installation script.
If we don’t list your Linux distribution, you can still use CyberGhost VPN to set up OpenVPN. This protocol works across most Linux systems and doesn't depend on a specific distro. You can also check CyberGhost VPN’s setup guides or contact our 24/7 support for help with your configuration.
If you set up CyberGhost VPN on a virtual machine (VM), it only covers the VM traffic and not the host device. If you set up CyberGhost VPN on the host device, it routes the VM’s traffic through the encrypted tunnel unless the VM is using “bridged” mode, which treats the VM as a separate device on the network.
Setting up CyberGhost VPN on a Linux remote server might interfere with SSH. Connecting to a VPN server can change the device’s routing and cut off the SSH session. If this happens, you can use the iptables utility to route SSH traffic outside the VPN tunnel.
Don't Take Our Word for It! See What Our Satisfied Customers Have to Say:
Here’s what our happy customers say about CyberGhost VPN.
*Please note: we sometimes pay expert sites to refer customers to us.
Choose the plan that works for you
IMPORTANT!
The 28 MONTH plan includes the biggest savings and is fully refundable for 45 days.
Save 85%
2 Years
2 Years + 4 Months
$1.99/moBilled $55.72 for first 28 months, then autorenews at $55.72 annually
45-day money-back guarantee
Smart Choice!
This deal offers the biggest savings and is fully refundable for 45 days!
IMPORTANT!
The 28 MONTH plan includes the biggest savings and is fully refundable for 45 days.
*All amounts shown are in US Dollars
Everything You Need in a VPN
- VPN servers in 100 countries worldwide
- Iron-clad encryption
- DNS and IP leak protection
- Automatic Kill Switch
- OpenVPN, IKEv2, WireGuard® protocols
- Strict No-Logs policy
- Unlimited bandwidth and traffic
- Fast VPN speeds
- Up to 7 devices protected simultaneously
- Apps for Windows, macOS, Android, iOS & more
- 24/7 live Customer Support service
- Up to 45-day money-back guarantee
- Up to 7 devices protected simultaneously
- Apps for Windows, macOS, Android, iOS & more
- 24/7 live Customer Support service
- Up to 45-day money-back guarantee
- VPN servers in 100 countries worldwide
- Iron-clad encryption