How do I get my account authhash?

Account credentials

To retrieve the authhash for your account, you'll need to supply 3 pieces of information:

  1. remote.it account username
  2. remote.it account password
  3. remote.it account Developer API Key

The Developer API Key can be found on the "Accounts" page at https://remote.it.

 

mceclip0.png

 

Windows

Use the attached Powershell script getAuthhash.ps1 to retrieve your account authhash.  This script calls the /user/login REST API endpoint, which is documented here.  This script displays the value of the "service_authhash" attribute.

Open a command prompt and navigate to the location where you downloaded the script.  Copy and paste the following command to the console.

powershell .\getAuthhash.ps1

 

After a few seconds your authhash will be shown.

C:\users\test>powershell .\getAuthhash.ps1
Enter your remote.it username: fxxxxxxxxxxxxxxxxxxxxxm
Enter your remote.it password: ************
Enter your remote.it Developer API Key: N--------------------------------------z
Passing request to API...
service_authhash : 5-----------------------------4

C:\users\test>

 

Linux/macOS

Use the attached script connectd_get_authhash.sh to retrieve your account authhash.  This script calls the /user/login REST API endpoint, which is documented here.  As it is likely that you will be writing your application in a language other than POSIX shell, this example shows how to call the /user/login API endpoint and extract the account authhash from the returned JSON data.  You need to get the value of the "service_authhash" attribute.

 

Open a Terminal Window, cd to the folder where you downloaded the script, then make the script executable:

chmod +x connectd_get_authhash.sh

Execute the script.  It will request your remote.it account username and password.  After a few seconds it returns a login token (which you don't need here) and your account authhash (which you do).

My-MacBook-Air-2:Downloads me$ ./connectd_get_authhash.sh 
Please enter your remote.it Username (e-mail address):
my-email@domain.com

Please enter your remote.it password:
Your temporary login token is: f01xxxx2e3151339ee2b2efbxxxx2ead
Your login auth_hash is: 5-----------------------------4
.
My-MacBook-Air-2:Downloads me$

The token is temporary and can be used for other REST API calls.  The authhash does not expire.

 

 

Was this article helpful?
0 out of 0 found this helpful