< Back

How to connect to Surfshark from countries with internet restrictions on Linux?

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

  1. At first, you will need to get Surfhark service credentials. Those are the credentials, different from the ones that you use to log in to our website or the app.  To find them, go to the login page of our website, here https://account.surfshark.com/  and log in. 

    Once you're logged in, go to Devices -> Manual, scroll down to the bottom of the page. You will find your service credentials there.


    sc4.png

  2. Open the terminal window (Ctrl + Alt + T).

  3. Install the necessary packages by entering the command:
    • sudo apt-get install openvpn unzip
    • If you are requested to enter your password, please enter your computer's admin password.

  4. Navigate to OpenVPN directory by entering:
    • cd /etc/openvpn 
  5. Download Surfshark OpenVPN configuration files:
      • sudo wget https://surfshark.zendesk.com/hc/article_attachments/360014062019/Surfshark_Config_Linux.zip 

  6. Extract `configurations.zip`:
    • sudo unzip configurations

  7. Remove the .zip file which will not be used:
    • sudo rm configurations

  8. To see the list of all the available servers enter:
    • ls

  9. Choose one of the servers from the servers list and connect to Surfshark by entering:
    • sudo openvpn [file name]
      For example:
    • sudo openvpn Turkey_udp
    • sudo openvpn /etc/openvpn/Turkey_udp

  10. You will be asked to enter service credentials. Enter the Username and Password that you have collected in the 1st step.

  11. You have successfully connected to Surfshark if in the Terminal logs you can see "Initialization Sequence Completed".

    To disconnect from the OpenVPN connection simply open terminal and press Ctrl+C. 


    If something is not going according to the guide, feel free to contact our Customer Success Sharks anytime!
Was this article helpful?