How-To: Creating and Uploading an SSH Key

Creating and Uploading an SSH Key

To SSH into an instance using your own terminal (as opposed to the Google Cloud Platform console), you must generate and upload an SSH key.

  1. Generate an SSH key using the following command:
    $ ssh-keygen -f ~/.ssh/my_gcp_keyname -t rsa
    This generates a public/private key pair.
  2. In the Compute Engine menu, click Metadata.
    Sample menu for Google Compute screen.
  3. Click the SSH Keys tab and click Add SSH Keys.
  4. Copy your key data into the input box in the following format: protocol public-key-data [email protected]
  5. Click Save. Your public key is now available to all instances in the project.

Share:

More Posts

Share on facebook
Share on twitter
Share on linkedin

Sign up for our newsletters

SEO

Book Now Free SEO Consultation

Commerce

Take your ecommerce site to next the level

Development

Website Development