Skip to main content
Compliance · Medium severity

GCP VM OS Login Not Enabled

SSH access is granted by keys in metadata rather than by identity, so removing a person's access does not reliably remove their key.

Free to start. No card. The playground just needs your work email.

Google Cloudprovider
Mediumseverity
Compliancewhere it shows up
Manualfix, steps written out

Google Cloud

Found, explained, handed over.

Where the estate departs from your policies, frameworks and tagging rules.

01

Detect

ZopNight checks this automatically across Google Cloud, with read-only access to the account.

02

Explain

Every finding says exactly what to change: Enable OS Login on Compute Engine VM.

03

Fix

The finding opens with the fix already written out, step by step, so it is one ticket, not an investigation.

Applies to
Compute Engine on Google Cloud
The fix, by hand
  1. Open Cloud Console → Compute Engine → Metadata → Set enable-oslogin = TRUE at the project level (recommended) or per-VM Edit → Custom metadata.
  2. Grant users one of: roles/compute.osLogin (non-sudo) or roles/compute.osAdminLogin (sudo).
  3. Remove any project-level / instance-level SSH keys in Metadata. They bypass OS Login.
  4. (Optional, 2FA) Enable enable-oslogin-2fa = TRUE and enrol users in Google 2-Step Verification.
  5. Test SSH: gcloud compute ssh ‹name›. Login uses POSIX accounts derived from IAM identity.

These are the steps the finding carries in the product.

Category
Compliance. Configuration drift from best practice: public access, missing MFA, unencrypted storage, deprecated runtimes.
Where it appears
The Compliance tab of Recommendations, with every affected resource listed.
Rule ID
RC-1202
Full reference

GCP VM OS Login Not Enabled

Related checks

See the compliance findings in your account.

Connect a read-only role and the first pass runs on your own estate. This check, and the rest of the catalogue, with it.

Prefer to talk it through first? Book 20 minutes with the team.

  • $30M+annualised cloud spend under management
  • 550K+resources tracked since launch
  • 20-60%off the bill in the first month
  • SOC 2Type II report, plus ISO 27001

Figures published on zop.dev.

Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·