Skip to content

SSH using IAP

Prerequisites

You need to have a firewall rule below

IP Address Direction Port
35.235.240.0/20 INBOUND 22

The above assumes you have SSH listening on port 22

Command

gcloud compute ssh --zone "<zone of instance>" "<instance name>"  --project "<project>" --tunnel-through-iap

Want to make this site better? Open a PR or help fund hosting costs