How can we help you?

Topics

How to use a token with NordVPN on Linux

Here’s how to use a token to log in and log out of the NordVPN app on Linux — and what to do if you lose your token.

Note: This login method is also suitable for headless (no GUI) devices.

Logging in

If you need an alternative way to log in to the Linux application, use the following command:

nordvpn login --token <token>

You’ll need to access the token number to use this login method.

To access the token number:

  1. Go to my.nordaccount.com/dashboard/ and click on NordVPN.

    chrome_WbHE5PCVOA.png
     
  2. Scroll down until you see the Manual setup tab. Choose to Set up NordVPN manually.

    chrome_G4LJM3YSUJ.png
     
  3. Verify your email by entering a code you receive to your registered e-mail.

    chrome_0ywSfA1Bj2.png

  4. Click on Generate new token tab.

    2.png

    You will be given two options: 
  • Create a temporary token, which will expire after 30 days.
  • Create a token, which will not expire. We recommend enabling MFA if you choose this option.
  1. Click on Generate token.

    3.png
     
  2. A window with a token number will pop up.
    Please note that the token number will only be shown once. Make sure you log in before you close the window.

    4.png
     
  3. Once you copy the token number, paste it into the command:

    5.png

    The command should look like this:
nordvpn login --token <token>

Logging out

  • If you log out by using nordvpn logout command line, your token will expire, regardless of which token you created, and you won’t be able to log in again using it:

    token_vol1_2.png
     
  • If you want to re-use your token and do not want it to expire, use the nordvpn logout --persist-token command line:

    token_vol1_3.png

What if the token number for NordVPN expires?

If you lost your token number for NordVPN, or it expired, revoke your token by clicking the Revoke button:

token_vol1_1.png

Was this article helpful?
Thanks!