Every machine signs in with a device code, so a headless server needs neither a browser nor your Google password.
- Run
justdrive loginon the machine. Add--name vps-2to name it. - The terminal prints an approval link and a code like
HJKL-MNPQ. - Open the link in any browser, sign in to your justdrive account, and type the code.
- Approve the machine. The terminal confirms the sign-in.
justdrive login
$ justdrive login --name vps-2
Open https://drive.astexlabs.com/device
and enter this code if it is not filled in: HJKL-MNPQ
Waiting for approval...
Signed in as vps-2.
The code is good for 10 minutes, and the CLI checks every 5 seconds while it waits. Approving gives that machine its own token, which you can revoke at any time.