SourceTree broke my SSH keys

Sourcetree is a great free git GUI client for Mac and Windows. A recent update (2.4) really broke my workflow however and it took me longer than it should have to figure out what the issue was.

It seems Atlassian are enforcing a behavioural naming convention for ssh keys, which seems somewhat crazy. Rather than go through and change all my own naming conventions to align with theirs I simply created some symlinks. Problem solved.

The format needed is: yourbitbucketusername-BitBucket.pub

Given the syntax for creating a symbolic link:
ln -s /path/to/original/ /path/to/link
You’ll need something along the lines of:
ln -s ~/.ssh/id_rsa.pub ~/.ssh/boolean-BitBucket.pub

Leave a Reply

Your email address will not be published. Required fields are marked *