Buy VPN to Get A Better and Secure Internet Experience. Try our exclusive risk-free 7-day trial at $0.99 only!

How to manually setup OpenVPN Command Line in Linux

Jul 27, 2016
Dec 12, 2020
Download PDF

You can now set up PureVPN using the OpenVPN protocol on your Linux via command line. Check out the following steps to learn how you can do it in a few minutes.

Note: The following tutorial works for Linux based OS’ alone, including Mint, Ubuntu, Debian.

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

Run command: sudo apt-get install openvpn

2 Run command: wget “”

3 Run command: unzip

4 Rename the folder by right clicking folder “New OVPN Files” and change it to “Open”

5 Run command: cd “Open”

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

7 Run command: cd /etc/openvpn/

8 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”.

9 After Enter Auth Username, enter your VPN’s username.

10 After Enter Auth Password, enter your VPN’s password.

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

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

Please use the comment box for your suggestions & feedback. For additional help, please submit support ticket with errors and screen shots (if possible) OR Contact our 24/7 live chat.

No Yes

Comments (0 )