Skip to main content

How to set up OpenVPN Command-Line on Linux

You can now manually set up the OpenVPN command line in Linux through PureVPN.

Updated over a year ago

Find your VPN credentials for manual configuration

To find your VPN credentials log into the PureVPN member area. Click ๐Ÿ‘‰ here to visit Member Area.

  • Login to the Member Area using your PureVPN registered email address and password.

  • On Subscription tab scroll down to be able to view your VPN credentials.

  • You will be able to see and copy your VPN credentials.

  • Note down your PureVPN username and click the Eye icon to make your password visible and use it in the manual configuration.

How to set up OpenVPN manually on Command-Line

You can now manually set up the OpenVPN command line in Linux through PureVPN. Check out the following steps to learn how you can do it in a few minutes.

  • The following tutorial works for Linux based OSโ€™ alone, including Mint, Ubuntu, Debian.

  • Press CTRL+ALT+T to access the terminal.

Run command: sudo apt-get install openvpn


โ€‹Run command: wget


Run command: unzip New+OVPN+Files.zip

  • Rename the folder by right clicking folder New OVPN Files and change it to Open.


Run command: cd Open


Run command: sudo cp ca.crt TCP/* UDP/* Wdc.key /etc/openvpn/


Run command: cd /etc/openvpn/

Run command: sudo openvpn Sweden-tcp.ovpn

Note: In this case the Sweden-tcp server is used to connect to the VPN as an example. You are free to choose any server that best fits your requirements. In order to view all available servers and their names, press the Tab key twice immediately after sudo openvpn.

  • After Enter Auth Username, enter your VPN's username.

  • After Enter Auth Password, enter your VPN's password.

  • An initialization sequence will commence, and upon completion will present connection logs.

  • To disconnect: It is as simple as closing the terminal or pressing CTRL+C in order to terminate the VPN connection.

Did this answer your question?