It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Permission Denied (publickey)

Hi,

I'm receiving this error in Sourctree:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Unable to fetch in submodule path 'YBAudioFramework'

I believe sourcetree prompted me for a publickey access at one point when I was neither pulling nor pushing, and I clicked deny out of principle. Now I'm being punished for that :) How can I give sourcetree access again? I tried going through keychain access and also removing the hostusername map from Library/Application Support/Sourcetree

Any other ideas?

1 answer

1 accepted

0 votes
Answer accepted
Just FYI, the time SourceTree prompted you was because by default it does a periodic background fetch in order to be able to show you the ahead/behind markers relatively up to date without manual action. You can disable this in Preferences if you like. As for the error, are you certain your key works elsewhere? SourceTree just goes via ssh here so it's behaviour should reflect the command line too. The permission prompt is, IIRC, just to allow the app to use your keychain entry to unlock the key if it's pass phrase protected. I might be misremembering that since I haven't had to grant it in a hole, but I don't believe there's a 'Always deny' option, only allow, deny and always allow. It's possible the key has been unlocked in your session (Mac comes with ssh- agent effectively running automatically so you'll only have to type the pass phrase once) and the problem is actually a genuine key rejection.

For some reason my key was working with another repo but not this one. I created a new key and now everything is working, so you were right it was a key issue, not a sourcetree issue.

Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

951 views 0 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you