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 Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,129 views 4 2
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