easygcloud

SSH to a Compute Engine instance through Identity-Aware Proxy without a public IP

command

gcloud compute ssh INSTANCE_NAME --tunnel-through-iap --zone=ZONE

also accepted

gcloud compute ssh --tunnel-through-iapgcloud compute ssh INSTANCE_NAME --tunnel-through-iap

Command breakdown

Part of the Google Cloud CLI (gcloud) — Alpha & Beta category.

gcloudcomputesshINSTANCE_NAME--tunnel-through-iap--zone=ZONE
FlagPurpose
--tunnel-through-iapBoolean flag
--zoneSet to: ZONE

Test your recall — not just your reading.

Practice with interactive quiz →