Note that you can use the --no-launch-browser option to give you a easy cut-and paste option for headless servers. https://cloud.google.com/sdk/gcloud/reference/auth/login
Also, you can use service accounts rather than personal accounts with gcloud...
https://cloud.google.com/sdk/gcloud/reference/auth/activate-...