GCP: You do not have sufficient permissions to SSH into this instance

心已入冬 提交于 2019-12-11 04:25:52

问题


I have a (non-admin) account on one GCP project.

When I start the Dataproc cluster, GCP spins up 3 VMs. When I try to access one of the VM via SSH (in browser) I get the following error:

I tried to add recommended permissions, but I cannot add the iam.serviceAccounts.actAs permission.

Any idea how to solve this? I read through the GCP documentation, but I just cannot find the solution for this. I have the following roles associated with my account:


回答1:


In the end, we managed to solve it by granting users the Editor permission on Compute Engine default service account. Not sure it is the right way but it seems to work.




回答2:


I believe the latest documentation on Compute Engine SSH access is here: https://cloud.google.com/compute/docs/instances/managing-instance-access

It seems that you have to enable OS Login on the specific instance(s) you want to SSH into.



来源:https://stackoverflow.com/questions/49384500/gcp-you-do-not-have-sufficient-permissions-to-ssh-into-this-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!