Márton Kodok
Feb 15, 2023

--

The hint from the error message is that tries the public key approach and not the tunnel approach. Try using Cloud Shell and work on the permissions and firewall as described in the article until the first command works. This way you validate that it goes through tunnel and not via public key.

```

# ssh into vm

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

```

--

--

Márton Kodok
Márton Kodok

Written by Márton Kodok

Speaker at conferences, a Google Developer Expert top user on Stackoverflow, software architect at REEA.net, co-founder IT Mures, life-long learner, mentor

Responses (2)