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)

Colin Karpfinger Apr 04, 2012


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
Steve Streeting Apr 05, 2012
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.
Colin Karpfinger Apr 10, 2012

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.


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,914 views 14 18
Join discussion

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