Please make sure the following requirements are met:
- Linux Ubuntu 13.1 (instructions might also work for older/newer versions, but can differ in details)
- Updated software packages
- Installed OpenVPN software
- A CyberGhost account
Here's how to create a CyberGhost account online
Here's how to manage your CyberGhost account
- A CyberGhost subscription
How to purchase or upgrade a subscription
Only prepaid subscribers: How to enter an activation key
Disclaimer: Please keep in mind that, although the technical process is as thoroughly documented as possible, you need to have at least some technical understanding. There's always a chance for an overseen mistake and/or things have changed and the article is not updated yet.
Visit your CyberGhost VPN online account and login with your Premium Username and Password
Click on 'My Devices' and in the 'Add a new device' section > click 'Others'.
Click Configure new device and in the new window, choose your desired protocol, in our example: OpenVPN and your preferred country and server group, as described below.
Also type in a Device name to assign to your device, then configure the parameters for the new device.
- Country: Since native protocol connections may only be used with exactly one server you now have to choose the country you want to surf from; the server to be used in this country will be chosen by CyberGhost automatically.
- Server group: Choose the server group and the OpenVPN protocol (UDP or TCP) you want to use:
UDP allows higher speed than the TCP version, but can result in broken downloads in some cases. This is the default setting.
TCP allows more stable connections than the UDP version, but is a bit slower. Choose this version, if you have recurrent connection issues such as sudden disconnections.
After setting up your preferred settings, save them with 'Save and download configuration'.
To view the OpenVPN credentials that are generated for you on the configuration dashboard, press 'View Configuration'.
Once the new page is opened, your connection credentials are generated for you but make note of the following information:
- Server group: This is the address of the country (server) you want to be connected with, e.g. '12345-1-ca.cg-dialup.net'. Note: This address changes with every country you have chosen in the step before. The actual single server to be used will be chosen automatically by CyberGhost.
- User name: A solely for this protocol generated user name. This is NOT your regular CyberGhost account user name, it's used only to authenticate with our servers via Manual Configurations.
- Password (you need to check the "Show Password" option in order to see it): A solely for protocol usage generated password. This is NOT your regular CyberGhost account Password, it's used only to authenticate with our servers via Manual Configurations.
- Pre-Shared Key
Please download the configuration file. For that please click on 'Download configuration' and download the config file to your computer (it's recommended that you create a special folder for the config, somewhere accessible like your Desktop and Extract/Copy the contents of the .zip file there).
Now, the saved config is a ZIP file, which contains the following single files:
- ca.crt: This is the certificate of the certification authority
- client.crt: This is the user certification file
- client.key: This is your private key file
- openvpn.ovpn: This is your OpenVPN configuration file
If you need to change the country you connect to, you must re-configure the location to use in your account management and download the new zipped config file.
Install OpenVPN and the network manager on Linux Ubuntu.
For that click on 'Menu > Search' and type 'Terminal' in the search field:
In the terminal window enter the following commands and confirm with 'Enter':
sudo apt-get update
sudo apt-get install openvpn
Start the file manager, open your home folder and create a sub-folder called 'CyberGhost'.
Unzip the content of the downloaded ZIP file and copy all single configuration files right inside that folder.
If you want to surf from different countries, rename the unzipped OpenVPN configuration file from 'openvpn.ovpn' to e.g. 'CG_RO_NoSpy.ovpn' (or whatever location/server group combination you have chosen while setting up the configuration file in your account management). Choose then a different location and a different server group (if available) and download the next zipped configuration file. Unzip it, rename the containing 'OpenVPN.ovpn' as well und copy it also inside the new folder. The also downloaded remaining certificate and key files in the ZIP do not need to be copied again, for you already have them from the first download.
For two different countries you need for example do the following steps:
Go back to the terminal window and start OpenVPN:
sudo openvpn --config
Don't push 'Enter' now, but instead move to the open CyberGhost folder, click on the wanted OpenVPN configuration file (e. g. 'openvpn.ovpn' or 'CG_DE_Default') and move it to the terminal window. The command line for OpenVPN will be completed automatically. Now you can push Enter'. (If you get an error message delete the quotation marks from the path name of the configuration file.)
|Note: In case you receive an error message, saying 'No such file or directory', please first use the Terminal window to move to the directory with the configuration files. If for example the files are located in a folder called 'CG' on your desktop, you need to type 'cd desktop' and then 'cd CG'.|
The command now might look like this one:
sudo openvpn --config [pathname to file]
Enter your Ubuntu user password, then the user name created in step 1 and at last the password, also created in step 1. DO NOT use your regular CyberGhost user name and password, which you use to login in the client and your account management!
DON'T close the terminal window after the connection has been established. If it's in the way, just minimize it, but don't close for your connection will also be closed then.
If you want the window not just out of sight, but completely away, add a '&' to the OpenVPN command:
sudo openvpn --config [Pfadname zur Datei] &
This bans the process to the background and the terminal window can be closed after the connection has been established.
To end the VPN connection push 'CONTROL + C'.