Qiang Blog

Just another zhangjingqiang's blog.

How to start Google Cloud Platform

Install SDK

https://cloud.google.com/sdk/

$ curl https://sdk.cloud.google.com | bash
$ exec -l $SHELL
$ gcloud init

Config SSH

$ gcloud compute config-ssh

Will generate these files under ~/.ssh:

➜  .ssh  tree
.
├── config
├── google_compute_engine
└── google_compute_engine.pub

Now ssh the Host name in the config file can login into the google compute engine instance. For example:

$ ssh your-app.asia-east1-c.your-environment

References

google-cloud-platform