loop enter google authenticator code after enabled oslogin 2fa

134 views
Skip to first unread message

陳冠志

unread,
Mar 1, 2022, 10:28:02 AM3/1/22
to gce-discussion
I have problem to login compute engine. Before enable oslogin I could login compute engine.
After enabled oslogin and oslogin-2fa, it loop the google 2fa verification window when I entering the google authenticator code. Please help,  thanks.



loop_enter_code.png2fa_authenticator.pnggce_2fa.png

Bruno (Google Cloud Support)

unread,
Mar 1, 2022, 1:25:55 PM3/1/22
to gce-discussion
Hello ~ For OSLogin and 2FA configuration, it's recommended to follow the instructions from this documention [1] including the limitations [2] and user IAM permission [3].
The limitations and permissions are common issues with OSLogin. That being said, I suggest to use gcloud [4] command with the flag `--verbose=debug` & `--ssh-flag="-vvv"` to get a better understanding on your connection attempts.

The SSH command [5] will look something like this one:
gcloud compute ssh [USER@INSTANCE] --verbose=debug --ssh-flag="-vvv"

For going any further in the SSH troubleshoot, we have a complet guide here [6] that worth to be mentioned.

--

陳冠志

unread,
Mar 2, 2022, 9:56:53 AM3/2/22
to gce-discussion
This problem has been solved.
Thank you.
Bruno (Google Cloud Support) 在 2022年3月2日 星期三上午2:25:55 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages