Logging in to nordvpn on a remote server

I guess I use nordvpn different than everyone else, and so I continue to wonder if nordvpn is the right solution for me.

I use debian on a few different hosts, and I use meshnet to connect between then.

One particular host has quite a bit of bandwidth, and so I get logged out quite often (I assume this is why I get logged out, I have no other idea why).

Logging into nord is simple enough when I’m at a computer, but when I’m only on my phone I can’t seem to:

  1. copy/paste the login callback url to my browser; though I’ve figured out a way to have it texted to me… not ideal, but good enough
  2. after I login on my phone, it refuses to let me get the callback url so that I can go back and paste it in the terminal.

I’ve tried the following:

  • several different android browsers to see if I can find one to get the callback (each one redirects before I can copy/paste anything)
  • Tried some command line browsers so that I can do the whole login process remotely. Even brow.sh doesn’t work. Apparently nordvpn doesn’t like this method of authenticating

The remaining option I seem to have is selenium: provide a url, 2fa token, username and password and do the login that way.

But if anyone has any better ideas, I’m all ears.

I assume I can’t use openvpn because I’m trying to do mesh at the same time.

There is a couple of things to unpack here.

First, you should not be logged often from your devices. I’ve got a Linux server that has been running for months without logging me out from NordVPN.

Second thing - please see this: https://support.nordvpn.com/hc/en-us/articles/20286980309265-How-to-use-a-token-with-NordVPN-on-Linux

This is a guide on how to log in with a token. This is my go to solution when logging in on headless Linux machines.

Also! If you get logged out, please grab logs and send them to our support. Once you get a ticket ID, please pass the ID to me so that we can take a closer look at it.

Here’s a handy guide: https://support.nordvpn.com/hc/en-us/articles/20379326742161-How-to-get-connection-logs-on-Linux

Ok, great. That’s helpful. I’m not sure why I get logged out so often, but maybe the token will help with that.