LyCheSis:ShowCase

LyCheSis:ShowCase

Who am I?

Unity / Unreal Developer and 3D Artist


What I write about


Recent Posts

Adding SSH Key to Bitbucket from Windows

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.

If you need to retrieve the key, you can open the ppk file and:

  1. Copy the public key lines.
  2. Remove the line breaks.
  3. Add ssh-rsa to the beginning of the line.
  4. Add rsaa-key-20190326 (or whatever it says under Comment:) at the end of the line.

Make sure that the whole public key doesn't have a single line break!