Skip to content

Instantly share code, notes, and snippets.

View nazarewk's full-sized avatar

Krzysztof Nazarewski (kdn) nazarewk

  • Poland
  • 21:45 (UTC +01:00)
View GitHub Profile
@netj
netj / gcp-start-iap-tunnel-ssh-proxy-magic.sh
Last active July 30, 2024 13:39
a nifty script for accessing with native SSH your IAP allowed Compute Engine instances
#!/usr/bin/env bash
# ~/.ssh/gcp-start-iap-tunnel-ssh-proxy-magic.sh
# a script to be used as SSH ProxyCommand to allow fully functional SSH access to any Google Cloud Compute Engine VMs allowing IAP access
#
# Author: Jaeho Shin <[email protected]>
# Created: 2022-10-31
# See also:
# - https://gist.github.com/netj/df4f9de1fefd254ab11979be7035b5d0/#readme
# - https://cloud.google.com/iap/docs/using-tcp-forwarding
#