How to set up manual OpenVPN connection using Linux Terminal?


In this tutorial, you will learn how to set up an OpenVPN connection on your Linux device. This is an alternative way of connecting to Surfshark servers that will come in handy if the Surfshark VPN app can not be installed on your device or it does not perform as expected.

You will need a device running the Linux operating system and an active Surfshark subscription. If you don’t have the subscription yet, you can get it here.



This tutorial uses Ubuntu distribution. Please note that some configurations may vary depending on the Linux distribution you are using.


Get your credentials


You will need Surfshark service credentials to connect to the VPN using a manual OpenVPN connection. Do not confuse these with your regular credentials, namely your email address and your password.

Here is how you can get Surfshark service credentials:

  1. 1.Go to this page where all the details required for manual connection are stored.

    You may need to log in before proceeding to this page. In that case, enter your email address and your password, then click Log in. 

  2. 2.Click on the Credentials tab. You will find Surfshark service credentials there.

    It is a good idea to keep this page open for now. You will need these credentials a bit later.




Install the OpenVPN package


Download configuration files



Connect to the VPN