Skip to content

Instantly share code, notes, and snippets.

View dlenskiSB's full-sized avatar

Daniel Lenski dlenskiSB

View GitHub Profile
@dlenskiSB
dlenskiSB / gcloud-start-tunnel-nc
Last active July 16, 2024 20:34
SSH ProxyCommand wrapper script for 'gcloud compute start-iap-tunnel'
#!/bin/bash
set -eo pipefail
if [[ $# == 0 ]]; then
cat <<EOF
usage: $(basename $0) [ARGUMENTS FOR 'gcloud compute start-iap-tunnel']
For some reason, 'gcloud compute start-iap-tunnel' lacks a mode where it can
be used as a ProxyCommand for SSH (e.g. proxy between stdin and stdout), so