Skip to main content

OpenVPN CLI Setup for Ubuntu Linux

Updated over 2 weeks ago

Step 1

Download your preferred VPN location on this link:

For this guide, we will select a Sweden-based server.

Step 2

Proceed to Terminal application.

Step 3

In the Terminal, enter this line: sudo apt-get install openvpn curl

Enter Y to continue...

Step 4

Enter: sudo openvpn [path of the configuration file]

Step 5

Enter your PrivateVPN registered email address and Password.

Step 6

Wait for a few seconds..


You are connected to the VPN as soon as you see the message: Initialization Sequence Completed.


To disconnect from the VPN, return to the terminal and hit Ctrl + C.

Did this answer your question?