Skip to content

Instantly share code, notes, and snippets.

@michaelwsherman
Last active April 8, 2019 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelwsherman/d2dad7b032c005e850d3534b0269d603 to your computer and use it in GitHub Desktop.
Save michaelwsherman/d2dad7b032c005e850d3534b0269d603 to your computer and use it in GitHub Desktop.
Add an SSH tag to a VM.
export INSTANCE_NAME="my-instance"
export ZONE="us-west1-b"
gcloud compute instances add-tags $INSTANCE_NAME \
--zone=$ZONE \
--tags=ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment