Is it possible to use the Google Cloud Shell via a ssh?

Viacheslav V Kovalevskyi picture Viacheslav V Kovalevskyi · Dec 25, 2016 · Viewed 13.9k times · Source

Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell.

Answer: yes it is now been possible: https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal

Answer

Travis Webb picture Travis Webb · Oct 23, 2019

Yes. From the gcloud CLI, run gcloud alpha cloud-shell ssh. This will establish an interactive SSH session with Cloud Shell.

Note, this command may change once this feature graduates from Alpha.

Reference: