Skip to content

Instantly share code, notes, and snippets.

@agmm
Created January 31, 2021 15:27
Show Gist options
  • Save agmm/99ca9e7cffa5e011cfb09a0bcfd6c41e to your computer and use it in GitHub Desktop.
Save agmm/99ca9e7cffa5e011cfb09a0bcfd6c41e to your computer and use it in GitHub Desktop.
Quick GCP Proxy
echo "Creating remote resource"
gcloud compute instances create proxyserver --quiet
echo "Waiting"
sleep 45
echo "Connecting to the resource"
echo "Press CTRL-C to exit and delete resource"
gcloud compute ssh proxyserver -- -CND 6656
echo "Deleting resource"
gcloud compute instances delete proxyserver --quiet
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment