GCP — Google Cloud Shell (Workaround)

abehsu
ㄚ北的所見所聞
3 min readMar 26, 2020

Scenario : Sometime google’s gcp ternimal will not work as excepted, so we can used this way to run google cloud shell

Log into GCP website, and click the hamburger icon and find the “Compute Engine”, we want to create a new VM.

click create instance

Change the image setting , select Google Cloud shell and the latest version

Change Access scopes and setting networking

Create the instance, click ssh button after successfully create

install google cloud shell
/var/lib/google/run-cloud-shell.sh

If you use gcloud auth list to search your current credentialed account, it will used google service account

gcloud auth list

If you want to change it, you can execute gcloud init, and you also need to type some settings(look at below)

gcloud init

After that, every thing is setting complete!!!!

--

--

abehsu
ㄚ北的所見所聞

喜歡探索不同領域的人事物,喜歡將自己學習到的也分享給大家,並產生共同的討論,從中得到回饋。 Linkedln(https://www.linkedin.com/in/hsuyuming/)