Giving access to instances OS login through Gmail account workspace

Hi I have a workspacce through my gmail account I want to give access to the instances OS login is it possible

From my understand OS login only applies to Google Cloud and also at the GCE instances level

My point being OS login cannot be applied at Google Workspace if that’s what you meant

Are you looking to apply OS login to a fleet of GCE VMs?

Not sure if there is a simple way to apply to fleet of GCE instead of applying to every VM individually

I am trying basic stuff like with the IAM account to login to the OS

under the instance Metadata I enabled
enable-oslogin TRUE

You can apply at project level also I guess. What is the issue you are facing?

I created a IAM user under the role I gave Admin OS login after that I added the enable-oslogin TRUE

then when I try to login using iam account name ip address

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

without ssh key we can login via IAM account right

How are you logging in what is the command and is this from your local machine?

Run the command in verbose mode to get more info

debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: No credentials were supplied, or the credentials were unavailable or inaccessible
No Kerberos credentials available (default cache: KCM:)


debug1: No credentials were supplied, or the credentials were unavailable or inaccessible
No Kerberos credentials available (default cache: KCM:)


debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/keerthi/.ssh/id_rsa RSA SHA256:xxxxxxxxxxxxxxxxxx agent```

why its expecting ssh key

Kerberos credentials?

I don’t have anything

I am simply ssh into from my linux terminal

Does login via web console work?

If that instance login when I add ssh key it works