Majico
Majico

Reputation: 3830

Google Cloud VM single user only

we have several user which for each of them a VM is needed. We need to force the user to use just his own assigned VM. For each user we have created a Service account and it has been assigned to the VM, but when the user goes to the console in the Compute Engine page, he can SSH to other VMs as well. What is the steps to follow for having one VM for just one user without having access to other VMS ?

EDIT: User has two type of VM, the Datalab VM which should be accessible with the command:

datalab connect VM_NAME

and a Window VM which should be accessible via RDP. the user has the following roles in IAM:

Upvotes: 0

Views: 359

Answers (1)

Caner
Caner

Reputation: 59168

If you want to grant only SSH access to users then you don't need to create service accounts. Simply add each a user's public key to a specific instance. More information about this is available here.

Upvotes: 4

Related Questions