Skip to content

Instantly share code, notes, and snippets.

View nazarewk's full-sized avatar

Krzysztof Nazarewski nazarewk

  • Poland
  • 01:16 (UTC +02:00)
View GitHub Profile
@netj
netj / gcp-start-iap-tunnel-ssh-proxy-magic.sh
Last active April 15, 2024 19:42
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 <netj@sparcs.org>
# Created: 2022-10-31
# See also:
# - https://gist.github.com/netj/df4f9de1fefd254ab11979be7035b5d0/#readme
# - https://cloud.google.com/iap/docs/using-tcp-forwarding
#