Here is a quick cheat sheet on how to add a proper ssh key for Sourcetree / Bitbucket from a Windows system with the PuTTY Key Generator.

Screenshot of PuTTY Key Generator

The process is not complicated by any means, but getting things mixed up simply results in Bitbucket or Sourcetree rejecting the key, making tracking down the problem more difficult than it should be.

Steps are:

  1. Press Generate to create the key.
  2. Press Save private key to save the private key to disk.
  3. Copy the public key from the text area box above into the clipboard.
  4. Paste the public key into the Bitbucket > Settings > SSH Keys section on the website.