Choose an access method (original) (raw)


If you have Linux virtual machine (VM) instances running on Google Cloud, you might need to share or restrict user or application access to your VMs.

Managing user access

OS Login

In most scenarios, we recommend using OS Login. The OS Login feature lets you use Compute Engine IAM roles to manage SSH access to Linux instances. You can add an extra layer of security bysetting up OS Login with two-factor authentication, and manage access at the organization level bysetting up organization policies.

To learn how to enable OS Login, seeSet up OS Login.

Manage SSH keys in metadata

If you are running your own directory service for managing access, or are otherwise unable to set up OS Login, you can manually manage SSH keys in metadata.

Risks of manual key management

Some of the risks of manual SSH key management include the following:

If you aren't sure that you want to manage your own keys,use Compute Engine tools to connect to your instancesinstead.

What's next?