Download PuttyGen

Using PuttyGen to generate keys for use with SSH/SFTP Clients

To generate a set of RSA keys with PuTTYgen:

  1. Start the PuTTYgen utility by double-clicking on its .exe file.
  2. For Type of key to generate, select RSA.
  3. In the Number of bits in a generated key field, specify either 2048 or 4096 (increasing the bits makes it harder to crack the key by brute-force methods).
  4. Click the Generate button.
  5. Move your mouse pointer around in the blank area of the Key section, below the progress bar (to generate some randomness) until the progress bar is full.
  6. A private/ public key pair has now been generated.
  7. In the Key comment field, enter any comment you'd like in order to help you identify this key pair later on (e.g. your e-mail address; home; office; etc.). The key comment is particularly useful in the event that you end up creating more than one key pair.
  8. Type a passphrase in the Key passphrase field and re-type the same passphrase in the Confirm passphrase field. Your PuTTYgen screen should look similar to the following:
  9. Click the Save public key button and choose whatever filename you'd like (some users create a folder in their computer named my_keys).
  10. Click the Save private key button and choose whatever filename you'd like (you can save it in the same location as the public key, but it should be a location that only you can access and that you will NOT lose!).
  11. Right-click in the text field labeled Public key for pasting into OpenSSH authorized_keys file and choose Select All.
  12. Right-click again in the same text field and choose Copy.
  13. Send your public key (the one you just copied to the clipboard) to the systems administrator who requested it. Keep your private key secure. Do not share your private key with anyone, ever.
  14. After sending the public key, you will need to configure your FTP client software to use the private key you created.  Links to instructions for some popular FTP clients is provided below (you may need to consult your software's documentation).
    WinSCP - Authentication Page (Advanced Site Settings dialog), go to Private key file section.
    FileZilla
    Creating a profile and having it point to your private key (see image below) is recommended.
  15. Once your SFTP client has been configured, log into the SFTP server. When prompted to enter your passphrase (or password, etc.) enter the same password you gave when you created your public/private key pair. If authentication was successful you should see a panel similar to the one below (depending on your client). If you wish, you can right-click and create a file, upload a file, or download a file (if available) to test write/read access.