This guide covers the CyberGhost VPN CLI commands and how to use them from the terminal.
To install the CyberGhost VPN CLI app, check out this guide:
Jump To…
See a List of All Available Commands
See a List of the Countries You Can Connect To
See a List of All Available Commands
To see the full list of available CyberGhost VPN commands, run:
sudo cyberghostvpn --help
See a List of the Countries You Can Connect To
The CyberGhost VPN CLI has several commands to get country lists, depending on what you need.
For the full list of countries, run:
sudo cyberghostvpn --traffic --country-code
For a list of P2P (Peer-to-Peer)-optimized server locations, run:
sudo cyberghostvpn --torrent --country-code
Note: Using P2P technology to download or share copyrighted content without permission is illegal in many countries. Users are solely responsible for ensuring their use of P2P networks complies with all applicable laws, regulations, and third-party terms.
For a list of streaming-optimized server locations, run:
sudo cyberghostvpn --streaming --country-code
Important Notice: CyberGhost VPN is a privacy and security service and mustn’t be used for copyright infringement. Use of the service to access, stream, or download content in violation of copyright laws, to circumvent geographic restrictions imposed by content providers, or to engage in any unlawful activity is strictly prohibited and constitutes a breach of our Terms of Service. Users are solely responsible for ensuring their use of the service complies with all applicable laws, regulations, and third-party terms.
Connect to the VPN
To connect to a server in a specific country, run:
sudo cyberghostvpn --country-code [two-letter country code] --connect
Note: Replace [two-letter country code] with the code for the country you want to connect to. For example, US for the United States or DE for Germany. To see the full list of available country codes, see the section above.
To use the OpenVPN protocol, run:
sudo cyberghostvpn --country-code [two-letter country code] --openvpn --connect
To use the WireGuard® protocol, run:
sudo cyberghostvpn --country-code [two-letter country code] --wireguard --connect
To connect using TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) specifically, run:
-
TCP:
sudo cyberghostvpn --country-code [two-letter country code] --tcp --connect
-
UDP:
sudo cyberghostvpn --country-code [two-letter country code] --udp --connect
Check If the VPN Is Running
To check if the VPN is connected, run:
sudo cyberghostvpn --status
You can also check your public IP with this command:
curl ifconfig.io
Disconnect from the VPN
To disconnect from the VPN, run:
sudo cyberghostvpn --stop
To uninstall CyberGhostVPN, run:
sudo cyberghostvpn --uninstall
Need assistance? Contact our Customer Support team:
- via email at support@cyberghost.ro
- via online request at https://support.cyberghostvpn.com/hc/en-us/requests/new
- via 24/7 Live Chat by clicking the Support button below
Comments
0 comments
Article is closed for comments.