Skip to content

caarlos0-graveyard/gssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

gssh

Helps to SSH into gcloud instances:

  • project fuzzy filter
  • instance name fuzzy filter
  • 1 day local project cache
  • 1 hour local instance cache

install

brew install caarlos0/tap/gssh

You'll also need the gcloud cli available and set up, you can do so with:

brew cask install google-cloud-sdk
gcloud auth login

usage

Basic usage:

gssh

Pre-filter project:

gssh my-proj

Pre-filter both project and instance:

gssh my-proj instance-xyz

Flush caches:

gssh --flush

Port-forward instance port 9200 to localhost:19200:

GSSH_FLAGS='-L 19200:localhost:9200' gssh my-proj elasticsearch