Hello Everyone ,
I have given added compute os login IAM role to a user and added enable-oslogin parameter under custom metadata of an instance . But still that user couldn't able to SSH into an instance .
As checked logs got an error message :
Dec 24 08:43:02 instance-1 sshd[10015]: error: AuthorizedKeysCommand /usr/bin/google_authorized_keys ************_gmail_com failed, status 1
Dec 24 08:43:03 instance-1 sshd[10015]: Connection closed by 74.125.41.32 port 46374 [preauth]
As a owner of the project i'm able to ssh into an instance without project / instance wide SSH keys by using only IAM role .
Any help would be appreciated .
Thanks,
Deena