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.
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
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.
3. You need to submit the required details now to complete the purchase.
4. Once done, visit the official CyberGhost VPN page and find My Account from the top right corner.
5. Next, you need to Log in using the credentials you've received through the confirmation email.
6. Once you can access your dashboard, find CyberGhost VPN for Linux from the Download Hub and hit the Configure button next to it.
7. On the next page, locate SERVER DISTRIBUTION and click on the Select Distribution button.
8. A drop-down menu will appear now; choose the Linux distro on which your system is running.
[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.
[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.
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.
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
- Once you get the list of available commands, put the following command and hit Enter to view the complete list of countries where CyberGhost VPN is available.
cyberghostvpn --traffic --country-code
Now take a note of the country code of your preferred location.
Select a Country
- Since you already know the country code, type the below command (replace 'DE' with your code) and hit Enter to initiate a quick connection to wherever you want.
sudo cyberghostvpn --traffic --country-code DE --connect
- Once you get the below output, be assured that your connection was established successfully.
VPN connection established.
By default, CyberGhost will connect you to the location using the OpenVPN protocol. You'll learn how to connect using the WireGuard protocol later.
- Now, confirm your connection status by entering the following command:
Connect to a Single Server
- Open a Terminal window and type in the following command (replace 'US' with your preferred country code) and hit Enter to start with the connection process.
sudo cyberghostvpn --traffic --country-code US
- Now, the full list of server locations in that specific country will be displayed; pick any city you want.
- Next, put the following command (replace 'New York' with your preferred location) and hit Enter to check the list of available servers in that city.
sudo cyberghostvpn --traffic --country-code US --city "New York"
The quotation in this command is mandatory to use to help Linux read multiple words as a single string.
- Once the list of servers appears, type in the following command (replace 'newyork-s433-i01' with your preferred server name) and hit Enter to connect to a single server as per your choice.
sudo cyberghostvpn --traffic --country-code US --city "New York" --server newyork-s433-i01 --connect
Stream with CyberGhost VPN
- With CyberGhost installed, open a Terminal window, then type in the below command and hit Enter to check the list of all supported streaming services in different countries.
cyberghostvpn --streaming --country-code
- Now, the streaming services with corresponding country codes will appear; type the below command (replace 'Netflix US' and 'US' with your preferred service and location, respectively) and hit Enter to connect to a specific streaming platform in any country.
sudo cyberghostvpn --streaming 'Netflix US' --country-code US --connect
Explore All Streaming Services in a Single Country
- To view all the available streaming services of a single country, open a Terminal window, then type in the following command (replace 'FR' with your preferred country code) and hit Enter.
cyberghostvpn --streaming --country-code FR
- Now, the list of streaming services in your selected country will appear, put the below command (replace 'Canal+' with your preferred streaming service) and hit Enter to connect to any streaming platform of that country.
sudo cyberghostvpn --streaming 'Canal+' --country-code FR --connect
Torrent With CyberGhost VPN
- With CyberGhost VPN installed on your system, type the following command and hit Enter to preview the list of countries where this VPN has P2P file sharing supported servers.
cyberghostvpn --torrent --country-code
- Once you decide a country from the list, put the below command (replace 'PL' with your selected country code) and hit Enter to connect to the P2P server in that country.
sudo cyberghostvpn --torrent --country-code PL --connect
- Now, check your connection status with the help of the following command-
- Finally, you're ready to start your Torrent Client.
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.
- First, open a Terminal window and type in the suitable command from the below list, and hit Enter to connect to your preferred country server with WireGuard.
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!