gcloud config set compute/zone us-central1-a
gcloud projects list
gcloud config set project xxx
gcloud compute instances describe test-ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cp chave.pub chave.pub.gogogle
Editar o arquivo chave.pub.google e colocar no inicio do arquivo usuario:
gcloud compute instances add-metadata test-ssh --metadata-from-file ssh-keys=/Users/addo/chave.pub.gogogle
ssh -i ~/.ssh/id_rsa [email protected]