Suddenly "SSH Authentication Failed"


everything worked fine, but suddenly this message always appears when trying to checkout another branch.


At first I realised I was working on wrong branch, I stashed my work and checked out the correct branch, but then I couldn't find the stash. I am quite new to Source Tree so I searched on the web where it should be, but it wasn't. Then I checked out my old branch, hoping the work would still be there, it wasn't neither, I checked out back an forth swiftly few times.. smile, then this message started to appear. I restarted SourceTree, hoping it would help with the message, but it didn't... anyway, this resolved my issue with missing stash. Now I can see it, but I can't do anything else.


So, there are two problems:

  1. Stash missing, showing after SourceTree was restarted
  2. Swift changing of branches led me to "SSH Authentication Failed"

2 answers

Check with your repository host. Your swift checkouts may have triggered some firewall rule that tries to prevent DDOS attacks.

It also might be that when you restarted SourceTree, your SSH agent was not launched. Make sure it is running.

Did you mean "SSH Client" or "SSH Agent"?

Agent, I corrected my answer.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot