How to: Generate an SSH Key
  • 28 Dec 2022
  • 1 Minute to read
  • Dark
    Light

How to: Generate an SSH Key

  • Dark
    Light

Article summary

The following guide shows how to generate an SSH key in Windows 10 or 11.

  1. Whether you use Command Prompt or Windows Terminal, type ssh-keygen and hit Enter. This will automatically generate the SSH keys. In our tests on Windows 11, it created a 2048-bit RSA key.


  2. After you type your command hit Enter, and then you’ll be prompted to give your key a name and save it in a specific location. If you use the defaults then it will save your keys in C:\User[YourUserName].ssh —assuming the C drive is where your user account is stored.


  3. Enter the name of your key and hit Enter.
  4. Next, you’ll be asked to enter a passphrase (password). We highly recommend you do this to keep your key secure.



  5. That’s it your keys are created, saved, and ready for use. You will see you have two files in your “.ssh” folder: “id_rsa” with no file extension and “id_rsa.pub.” The "id_rsa.pub" is the key you upload to servers to authenticate while “id_rsa” is the private key that you don’t share with others.


----------------------------------------------------------------------------------

Note: If you can’t see your “.ssh” folder in File Explorer here is how:




Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence