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

Security

How to Configure, Install & Use CyberGhost VPN on Linux (Ubuntu/Fedora/Mint/CentOS/PoPOS/Kali)?

Written by Srijani Ghosh
Published on November 9, 2021

CyberGhost VPN comes with a Command Line Interface application for Linux that makes the installation process quite easier for all the users. But if you're configuring CyberGhost VPN for the very first time, you need proper guidance to use it on your system. We've prepared a comprehensive guide to help you learn how to configure, install and use the CyberGhost CLI app on Linux. Take a look.

Note

CyberGhost VPN works on all widely-used Linux distros. The installation process is similar to the one mentioned here for all supported Linux distributions.

  • Ubuntu 20.04, 18.04, 16.04
  • Fedora 32, 31, 30, 29
  • Mint 20
  • CentOS 7
  • PopOS
  • Kali

1. First, click here to visit the CyberGhost VPN subscription page.

2. Next, click the Get CyberGhost VPN button and choose your preferred plan on the next page.

How to Configure, Install & Use CyberGhost VPN on Linux

3. You need to submit the required details now to complete the purchase.

How to Configure, Install & Use CyberGhost VPN on Linux

4. Once done, visit the official CyberGhost VPN page and find My Account from the top right corner.

How to Configure, Install & Use CyberGhost VPN on Linux

5. Next, you need to Log in using the credentials you've received through the confirmation email.

How to Configure, Install & Use CyberGhost VPN on Linux

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

How to Install & Use CyberGhost VPN on Linux

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

How to Install & Use CyberGhost VPN on Linux

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

How to install CyberGhost VPN on Linux

[We're using Ubuntu 18.04 here. You can pick any from Ubuntu, Fedora, Mint, CentOS, PoPOS, and Kali. The rest of the installation process will be similar for all of these Linux distros.]

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

10. Once the zip folder gets 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 like we've renamed the folder with "cyberghost".]

11. Once done, open a Terminal window and change its directory to the CyberGhost folder for installing the CLI app.

12. To do so, put the following command in the terminal window and hit Enter.

cd Desktop/cyberghost
How to Configure, Install & Use CyberGhost VPN on Linux

[In the place of "cyberghost", make sure you put exactly the same folder name with characters and capitalization that you've used while renaming the extracted folder.]

13. Once you enter the CyberGhost folder, type in the following command and hit Enter.

sudo bash install.sh

14. Now confirm your sudo access by putting your sudo password.

Note

At this point, you may be asked to install Python 3 and OpenVPN; choose "Y" (yes) if you haven't installed them yet.

15. At the time of installation, you'll be asked to put your CyberGhost account's Username and Password through the following output- 

Enter CyberGhost username and press [ENTER]:

Enter CyberGhost password and press [ENTER]: 

16. Once done, you'll get a message "Install completed ..." and now you are ready to use the CyberGhost CLI app.

17. After the installation process ends, type in the following command and hit Enter to check the available list of commands for using CyberGhost VPN.

cyberghostvpn

You’ll get a set of commands here to make the most of your CyberGhost VPN subscription and use the VPN security for different tasks.

Check out the section below to learn the complete usage of the CyberGhost CLI app. 

View the Full List of Country Codes

cyberghostvpn --traffic --country-code
Install & Use CyberGhost VPN on Linux

Now take a note of the country code of your preferred location.

Select a Country 

sudo cyberghostvpn --traffic --country-code DE --connect
How to Configure CyberGhost VPN on Linux

VPN connection established.

Note

By default, CyberGhost will connect you to the location using the OpenVPN protocol. You'll learn how to connect using the WireGuard protocol later.

cyberghostvpn --status

Connect to a Single Server

sudo cyberghostvpn --traffic --country-code US
How to Configure, Install & Use CyberGhost VPN on Linux
sudo cyberghostvpn --traffic --country-code US --city "New York"
Note

The quotation in this command is mandatory to use to help Linux read multiple words as a single string.

sudo cyberghostvpn --traffic --country-code US --city "New York" --server newyork-s433-i01 --connect

Stream with CyberGhost VPN

cyberghostvpn --streaming --country-code
sudo cyberghostvpn --streaming 'Netflix US' --country-code US --connect
How to Install & Use CyberGhost VPN on Linux

Explore All Streaming Services in a Single Country

cyberghostvpn --streaming --country-code FR
How to Configure, Install & Use CyberGhost VPN on Linux
sudo cyberghostvpn --streaming 'Canal+' --country-code FR --connect

Torrent With CyberGhost VPN

cyberghostvpn --torrent --country-code
How to Install & Use CyberGhost VPN on Linux
sudo cyberghostvpn --torrent --country-code PL --connect
How to Install & Use CyberGhost VPN on Linux
cyberghostvpn --status
How to Configure, Install & Use CyberGhost VPN on Linux

Use WireGuard Protocol in CyberGhost VPN

Since the CyberGhost CLI app connects you with the VPN servers using the OpenVPN protocol by default, you need to change the protocol manually.

For Traffic Server:

sudo cyberghostvpn --traffic --country-code US --wireguard --connect

[Replace the demo country code 'US' with your preferred one.]

For Streaming Server: 

sudo cyberghostvpn --streaming 'Netflix US' --country-code US --wireguard --connect

[Replace the demo streaming service 'Netflix US' and country code 'US' with your selected service and code.]

For Torrenting Server:

sudo cyberghostvpn --torrent --country-code US --wireguard --connect

[Replace 'US' with the country code of your preferred location.]

That’s all! You got the complete overview of how to configure, install, and use the CyberGhost CLI application for Linux . Don’t forget to bookmark this page to keep every process handy for future use. Apart from Linux, if you own other devices on different platforms, check our complete CyberGhost VPN setup guide. And if you still have any queries, drop us a message using the below button. 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: