How to manually setup OpenVPN Command-Line in Linux

Jul 27, 2016
May 06, 2021
Download PDF

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.

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.

No Yes

Comments (0 )