GitHub

gssh

Find and SSH into any GCP compute instance

Usage:
  gssh INSTANCE_NAME PROJECT_NAME SSH_USER [flags]

Flags:
  -h, --help     help for gssh
  -t, --toggle   Help message for toggle

Install

./zig/zig build gssh

Examples

# P20 Blue Staging VM
./gssh pdp20-n-vm n-pd-infra
# OR: Abbreviations work
./gssh p20 n-pd

# Django Homealign Prod VM
./gssh hb-p-vm p-hb-infra
# or
./gssh hb p-hb

# Connect with specific user?
./gssh awx the-helper-bees awx-builder-stage

Make tool accessible from anywhere in your terminal

# build
./zig/zig build gssh

# move
sudo mv ./gssh /usr/local/bin/gssh

# now accessible globally
which gssh