In a GCP Project, user ABC and user XYZ are invited by the owner. Both ABC and XYZ are given the role of ‘Compute Admin’.
ABC created a few VM without External IP, and then ABC can SSH into them.
But then XYZ can’t SSH into them, so the owner added 4 more roles to XYZ but still he couldn’t SSH into those VMs created by ABC. (The 4 roles added are ‘Compute Instance Admin (beta)’, ‘Compute Instance Admin (v1)’, ‘Compute OS Admin Login’, and ‘Compute OS Login’).
Eventually, I found out that the error message actually tells me XYZ can’t do so because there is no External IP. So eventually solved this by making XYZ to be owner too, temporarily.
Is this expected? I thought with the 4 additional roles given XYZ should be able to SSH into those VMs, regardless of have public IP or not. What am I missing here (or is this some kind of security-mantra or best-practice that somehow just I’m not aware of)?
Best Regards,
Wai Keat