You are not logged in.

#1 2019-11-14 20:03:50

uruz
Member
Registered: 2018-07-04
Posts: 22

[SOLVED] nordvpn-bin, login via one command or script?

I installed this package and am able to log in to NordVPN.  Now I am trying to log in to my account using one command I can alias, so I don't have to look up the password every time.  Here is the help for the command:

$ nordvpn login --help
nordvpn login
Usage: nordvpn login [command options] [arguments...]

Options:
   --username value, -u value  Specify a user account
   --password value, -p value  Specify the password for the user specified in --username

I assume it would look something like this, but I get an error:

$ nordvpn login --username value --password value
Username or password is not correct.  Please try again.

Where "value" is the username or password.
I've tried with variants of -u and -p instead of --username and --password.  I've tried surrounding value with each of these: "(<[{.  I've tried using = instead of a space between --username and "value".  Each results in an error.

Is there something I am missing?  Or, is there a way to write the command or a script to fill out the following?

$ nordvpn login
Please enter your login details.
Email / Username:
Password:
Welcome to NordVPN!  You can now connect to VPN by using 'nordvpn connect'.

My apologies if this is beginner level, and should be in a different subforum.

Last edited by uruz (2019-11-15 20:46:37)

Offline

#2 2019-11-15 05:17:44

SurlyCycler
Member
Registered: 2019-10-26
Posts: 26

Re: [SOLVED] nordvpn-bin, login via one command or script?

Hi

Arch has a nice wiki on NordVPN on all the codes you can use. https://wiki.archlinux.org/index.php/NordVPN

it is a little easier to read then the --help

but to answer your question when you type out

nordvpn login

you will be prompted for your email address and password that you use to log into the nordvpn website.

so you are aware, there is a nice extention for nord via tweaks in the aur repositories. https://aur.archlinux.org/packages/gnom … nnect-git/

hope this helps you.

Offline

#3 2019-11-15 13:03:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,409
Website

Re: [SOLVED] nordvpn-bin, login via one command or script?

SurlyCycler, I don't see how any of that addresses the OPs question.  He knows how to log in - he's trying to automate it.

uruz, are there by chance any '$' symbols in your username or password?  If so that would explain your symptoms.  In either case, surround the username and password with single quotes:

nordvpn login -u 'myuser@domain.tld' -p 'my$ecretP@ssw0rd'

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-11-15 20:46:19

uruz
Member
Registered: 2018-07-04
Posts: 22

Re: [SOLVED] nordvpn-bin, login via one command or script?

That did it!  I tried everything I could think of except single quotes.  Thank you for your help.

Offline

Board footer

Powered by FluxBB