Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Sourcetree does not work with SSH (plink)


if I try to connect to bitbucket with sourcetree (version 3.0.12) via ssh (plink) I only get the error message:

Server refused our key


I have set the putty/pageant option in Sourcetree.


Pageant is running and keys are loaded.
The key was added to my bitbucket account.It works with a different key on a different PC and it works on this PC with SSH (but the Sourcetree support for SSH is very poor, the key has to be added manual after every new start of sourcetree).Were is the problem, how can it be fixed?Regards!    Stefan

1 answer

0 votes
Mike Corsaro Atlassian Team Jan 03, 2019

Hello! Sounds like you have the wrong keypair loaded, or the wrong key loaded in Bitbucket/locally. Make sure you double check and see if they match.

Under "Tools > Options > General"  there's a 'SSH Client Configuration' area where you can set your SSH key to load on startup.

hecked it not only twice but much more often. That is not the problem...

(And the problem with the 'SSH Client Configuration' is, that it only loads the ssh keys in pageant, but not if you use the openSSH mode)

Just to dredge this up again, but also not working for me.  Any chance we can get a solution to this.  My system was working fine until I allowed my SourceTree to update, now it's not working.

Like ilikecheese8888 likes this

I also use Sourcetree and generated keys via the link and got same issue.


I just found the problem is the SSH mode.

If you follow this instruction and select OpenSSH in Tools>Options>General>SSH Client, it will work.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events