How to Generate Ssh Key in Linux?
Contents

3. Generate a new key

  • Open a terminal on your local computer and enter the following: ssh-keygen -t rsa -C “[email protected]”
  • Just press <Enter> to accept the default location and file name.
  • Enter, and re-enter, a passphrase when prompted.
  • You’re done!

How do I generate a public SSH key?

To generate an SSH key with PuTTYgen, follow these steps:

  1. Open the PuTTYgen program.
  2. For Type of key to generate, select SSH-2 RSA.
  3. Click the Generate button.
  4. Move your mouse in the area below the progress bar.
  5. Type a passphrase in the Key passphrase field.
  6. Click the Save private key button to save the private key.

How do I generate a SSH key in GitHub?

How to set up your SSH key with GitHub

  • Login to your terminal via SSH.
  • Generate a key pair by running the following command, substituting in your GitHub email address between the quotes ssh-keygen -t rsa -b 4096 -C “[email protected]”
  • When you’re prompted to “Enter a file in which to save the key,” press Enter to save it in the default location.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest