In Windows, use PuTTYgen to generate your public and private keys.

  1. If needed, download PuTTYgen from the PuTTY download page.(PuTTYgen might have been installed previously with PuTTY or WinSCP.)  
  2. Launch the program, and then click the Generate button.The program generates the keys for you.  
  3. Enter a unique key passphrase in the Key passphrase and Confirm passphrase fields. 
  4. Save the public and private keys by clicking the Save public key and Save private key buttons.