Archive for February, 2018
For anyone using Google Compute Engine (an excellent alternative to Amazon’s AWS EC2), the following wrappers and configs will make your life easier…
gcloud compute ssh wrapper to figure out the zone automatically
Put this in your path and you’ll be able to connect to an instance without figuring out its zone in advance:
gcloud compute scp wrapper to figure out the zone automatically
Put this in your path and you’ll be able to scp to/from an instance without figuring out its zone in advance:
gscp somefile jody-imageserver-test:
gscp jody-imageserver-test:somefile .
gcloud config wrapper to easily select the correct configuration
Put this in your path to make selecting configurations easier.
gc # list configurations gc prod # switch to the "default" configuration (prod is an alias) gc someconfig # switch to the "someconfig" configuration
Finally, EMACS TRAMP support!
Add this to your
.emacs file to add a
gssh method to TRAMP that connects to GCE instances on Google Cloud:
gssh is a script I wrote that should be in your path – see above. If you don’t find
gssh useful, you can replace it with
gcloud compute ssh .