You will need to use an ssh key to connect to VMs. This section outlines how you can create a new ssh key on the GCP console and then download the private key to your local system.

Refer to the GCP documentation for more information.

  1. Activate the Cloud Shell by clicking [>_] at the top of the console.

  1. Once you activate the Cloud Shell you will see the shell screen at the bottom of the browser.

  1. Create a new ssh key by using the ssh-keygen tool.

  1. Now a new key gcp-lk-quickstart is generated with a user name of gcp-user.

  1. In a later step you will need to register a public key to a new VM. Type cat to copy the public key.

  1. Download the private key with cloudshell dl gcp-lk-quickstart.

You will need this private key to connect to the VM in a later step.


Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment