Skip to content

Instantly share code, notes, and snippets.

@javdl
Last active September 18, 2018 14:56
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 javdl/fc8513d0589b3522cb17423bbcb170f5 to your computer and use it in GitHub Desktop.
Save javdl/fc8513d0589b3522cb17423bbcb170f5 to your computer and use it in GitHub Desktop.

Use Google Cloudshell with your favorite editor

Make sure your GCP project is set and you have the gcloud SDK installed. This is a quick guide based on a Google blogpost

Install sshfs

apt install sshfs

Test if you can connect with a regular SSH session (this allows SSH from any terminal, so you can use your favorite terminal with Cloudshell too!)

gcloud alpha cloud-shell ssh

Mount your cloudshell files to your local system

gcloud alpha cloud-shell get-mount-command ~/my-cloud-shell
cd my-cloud-shell
ls
server.py  README-cloudshell.txt
code server.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment