When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

How to Set Up and Use CyberGhost VPN on Linux

Written by Novak Bozovic
Last updated July 18, 2024

There are a couple of ways to set up CyberGhost VPN on your Linux machine. The easiest method is to use CyberGhost's CLI app, which works on various Debian- and RPM-based Linux flavors, such as Ubuntu, Fedora, PopOS, CentOS, and more. After you install the VPN, you'll interact with it using a series of commands.

Another way to get started with CyberGhost is to set up an OpenVPN connection manually. According to the VPN's documentation, this works on Linux Ubuntu 19.10 and newer. However, as long as your Linux flavor allows you to set up OpenVPN connections, you should be covered.

In this guide, we'll discuss all the possible methods of installing CyberGhost on Linux through its CLI app and OpenVPN configuration, coupled with helpful screenshots.

How to Set Up CyberGhost on Linux

We'll begin with CyberGhost's CLI application, which provides access to multiple protocols and more advanced settings. Later, we'll also show you how to configure individual OpenVPN connections on your Linux machine.

Method #1: Set Up CyberGhost on Linux via the CLI App

The process of setting up CyberGhost's Linux app requires you to download its application, install it, and then use the Terminal to interact with servers. Here's all you need to do:

1. Sign up for CyberGhost VPN using your computer and any Web browser.

2. Then, return to CyberGhost's home page and click 'My Account' in the top-right corner. Provide your credentials to access your dashboard.

Logging in to CyberGhost Online Dashboard

3. Once you can access your dashboard, find 'CyberGhost VPN for Linux' from the Download Hub and hit the Configure button next to it.

CyberGhost Online Dashboard

4. On the next page, locate SERVER DISTRIBUTION and click on the Select Distribution button.

Selecting Linux Distribution CyberGhost Dashboard

5. A drop-down menu will appear now; choose the Linux distro on which your system is running.

Compatible Linux Distribution Packages for CyberGhost

6. Now, hit the Download App button to start downloading the setup package.

Downloading CyberGhost on Linux Ubuntu

7. Once the zip folder is downloaded, locate it and extract the inside content by choosing the Extract Here option from the menu. You can also rename the extracted folder by pressing the F2 button.

Extracting CyberGhost on Linux
Renaming CyberGhost on Linux

8. Right-click on CyberGhost's installation file and pick 'Open in Terminal.'

Opening CyberGhost in Terminal

9. Type in the "sudo bash install.sh" code and press Enter. You'll need to provide your password.

CyberGhost CLI Installation

10. You'll now see a prompt asking you to install the required packages (this happens in most cases). To proceed, press 'Y' on your keyword.

11. Type in your CyberGhost username and password to confirm the installation.

CyberGhost Username and Password on Linux

12. You can now start interacting with CyberGhost. Go with "sudo cyberghostvpn" to preview all of the available commands for CyberGhost's CLI app.

List of CyberGhost CLI Commands

Method #2: Set Up CyberGhost on Linux Through OpenVPN

This method will instruct you to set up an OpenVPN connection manually on your Linux. That said, you can repeat the procedure explained below if you wish to add multiple connections. Let's explain everything you need to do:

1. Get your CyberGhost subscription using your Linux PC and any Web browser.

2. Go back to CyberGhost's home page, click 'My Account,' and access your online dashboard.

3. Pick 'VPN' on the left and 'Configure Device' on the right.

Configuring CyberGhost connection.

4. Create a new configuration by picking 'OpenVPN,' any country you want, and provide a name for your connection. Once done, use the 'Save Configuration' button.

Setting up manual CyberGhost connection.

5. Find your new connection and click 'View' to see its details. Make a note of its server group, username, and password (these are your OpenVPN credentials). Click 'Download Configuration.'

Downloading manual CyberGhost connection details.

6. Unzip the file you just downloaded. It contains several files, which you'll soon use to configure CyberGhost on your Linux machine.

7. Launch Terminal on your computer and input the following commands:

sudo apt-get update
sudo apt-get install openvpn
sudo apt-get install network-manager-openvpn

8. If your machine's Network Manager doesn't support OpenVPN out of the box, you need to use Terminal with the following commands:

sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome
sudo apt-get install network-manager-pptp
sudo apt-get install network-manager-vpnc

9. Click on the 'Network' icon in the top-right corner of your screen and pick 'Settings.'

10. Go to Network > VPN, and then click on the plus sign to add a new connection.

Adding VPN Connection on Linux

11. Pick 'Import from File' and upload the file whose extension ends with 'OVPN.'

Importing OVPN File Linux
Uploading CyberGhost OVPN to Linux

12. You'll now have to enter a series of information, as displayed below:

13. Click 'Add' to finish setting up your connection. Then, you can use the system menu's 'Network' icon to connect to your VPN. That's it!

Connecting to CyberGhost on Linux

Final Thoughts

In conclusion, we'll add that going for CyberGhost's CLI application is the best option. That way, you'll get advanced VPN features, thousands of servers, multiple VPN protocols, and more. However, if you wish to use OpenVPN only, you can do that on Ubuntu through manual configuration.

Aside from Linux, CyberGhost supports dozens of other platforms. To learn how to set up CyberGhost on those additional platforms, use the provided link. We made sure to cover computers, phones, tablets, streaming devices, routers, and more.

That's all for our guide on configuring CyberGhost VPN on Linux machines. If you have any questions, post them in the comments section below. Thanks for reading!



For a better user experience we recommend using a more modern browser. We support the latest version of the following browsers: For a better user experience we recommend using the latest version of the following browsers: