Hi Max,
Thank you.
Yes, I'm aware of that file. If my username_domain is inside /var/google-sudoers.d, I should be golden.
I think something is wrong with my existing CentOS instances since it doesn't work. I created some new ones and oslogin+2fa worked every time. I have to keep investigating.
On a slightly different note:
I cannot have SSH access through the WEB console on my prod project. I end up with fail...
It works on my test project but when I enable 2fa, I click on SSH, it's asking for an authentication method then end up with fail as well. Works without 2fa
IAM roles look fine. SSH FW rules should allow SSH WEB console to work.
I'm really puzzled, I followed the Google Cloud SSH troubleshooting guide and checked everything many times but it still fails.
gcloud compute SSH from Cloud Shell and from Terminal work no problem.