Generating SSH Key Pair on Windows

Last Updated : Nov 22, 2024 |
Prolog information
This topic gives instructions on how to generate SSH key pair on Windows along with an example.
Before you begin
  • You must enable SSH public key authentication.
  1. Run PuTTY Key Generator (PuTTYgen).
  2. For Type of key to generate, select either
  3. .
  4. For
  5. For
  6. Select Generate and move cursor in random pattern within PuTTYgen window until key is generated.
  7. (Optional) Change comment for the key.
  8. (Optional) Enter a password for the private key; or leave the fields blank for a passwordless private key.
  9. Select Save public key and provide a name for the public key (For example, bg1-root- key.putty).
  10. Select Save private key and provide a name for the private key (For example, bg1-root-key.ppk).
  11. Select Conversions/Export OpenSSH key and save a new public key file (For example, bg1-root-key.putty2).
  12. Copy this new key to a Linux server and use ssh-keygen to generate an OpenSSH format used by the Branch Gateway.
    ADDITIONAL INFORMATION:
    ssh-keygen -y -f bg1-root-key.putty.2 > bg1-root-key.pub
  13. An Alternative to step 10 and 11, copy the Putty public key and manually create an OpenSSH key with a text editor.
    ADDITIONAL INFORMATION:
    This file has the format as mentioned in the table.