"No supported authentication methods available (server sent: publickey)"

Software installed:

  • SourceTree 2.3.5.0 - from the latest ST installer.
  • (embedded) Git 2.14.1.windows.1 - the latest included with the latest ST installer.
  • Pageant 2012-06-04:r9551 - from the latest MSI installer for putty/puttygen/plink/pageant.


Today started out fun. I've been using the old SourceTree client for over a year, with key authentication via pageant. Today my co-worker changed permissions settings on the bucket, and I found that I could no longer access a couple of repositories via SourceTree - it kept prompting me for a username and password. Through the git CLI, I was still able to perform all the usual tasks on the sasme repository using username/password authentication.

In an effort to fix this, I updated all software to the latest versions installed. No dice, it still wouldn't work. So I created a new key, and add it to pageant and bitbucket, deleting the old key from both. I only have one key.

Under "Edit hosting account" for my only BitBucket account, I have "preferred protocol: SSH", as per the instructions. I have the green tick and "Authentication OK".

Under repository settings, I have my origin path. In there, the URL is ssh://bitbucket.org/~~/~~, host type is bitbucket, username is my username - the one that works through the CLI.

Everything is looking good, right? Until I try to do anything, upon which I receive the error message above. If I try to use the git CLI, I'm told that it can't communicate with my authentication agent.

How do I resolve this?

1 answer

0 vote

Hi

Is Pageant running, with your key leaded, in your system tray when this fails? It sounds like it isn't, but that might be too simplistic.

Sorry another simplistic question are you using a key or username/password for the SSH connection? If it is a key is it loaded in Pagaent?

"I created a new key, and add it to pageant and bitbucket, deleting the old key from both. I only have one key."

@Michael Minns Don't you think it's terrible customer service when you ask questions which are answered by copying and pasting from the original question?

Sorry, simply a mistake on my behalf.

Can you post up the error you get from the CLI? Thanks

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

545 views 1 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