Site icon AWS: © LimitlessV, Software Development Solutions.

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.
  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 username@example.com
  5. Click Save. Your public key is now available to all instances in the project.
Exit mobile version