March 2019
Beginner to intermediate
778 pages
34h 20m
English
To establish an SSH connection to a running instance (as configured previously) from the Cloud Shell or a developer machine, run the following command:
gcloud compute ssh hello-gce --zone=us-east1-b
If this is your first time creating an SSH connection using a local machine, gcloud will generate a new local SSH key on your behalf, and upload the public key to the Compute Engine metadata server. This SSH key will then be made available to all instances through the metadata server.
In addition to manual interaction, SSH access makes it possible to execute commands on remote machines as part of a script, opening the door for complex automation processes. For example, the following command can be run to see details about the CPU of ...
Read now
Unlock full access