Compute Engine on GCP and SSH to it¶
Go to the Compute engine service In the navbar you will see the metadata option in the ssh option paste the public key that you will generate
Steps¶
-
Generate the ssh key
-
Copy the public key
-
Paste this public key in the metadata section ssh key and then save it.
now to connect with your terminal write the following command
If you had already running instance and later you added the ssh key in metadata then you might have to add the user