May 2018
Intermediate to advanced
554 pages
13h 51m
English
Before you launch VM instances, you need to upload your ssh public key in order to log on to the VM. If you don't have any ssh keys, you have to run the ssh-keygen command to generate a key pair (public key and private key). Let's assume you have a public key as ~/.ssh/id_rsa.pub and a private key as ~/.ssh/id_rsa
$ whoamisaito$ gcloud compute config-ssh --ssh-key-file=~/.ssh/id_rsa
$ gcloud compute project-info describe --format=json{ "commonInstanceMetadata": { "fingerprint": "fAqDGp0oSMs=", "items": [ { "key": " ...
Read now
Unlock full access