Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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).

I'm trying to push to my remote git on GitHub using SSH but keep receiving the error: 


Pushing to Permission denied (publickey).

fatal: Could not read from remote repository.


I'm using OAuth and SSH to access Github via SourceTree. The SSH Key from the Account Settings in SourceTree is added in the "SSH and GPG Keys" settings on Github. Am I missing something obvious to get this to work?

Any help would be appreciate. 

1 answer

Hi @Al Tabq ,

Sorry for responding this late. I'm not sure this problem has been fixed or not. The error can be for several reasons but definitely server rejecting the connection.

Could you please check this guide - and if you see that you don't see your public key in GitHub, you'll need to add it to Github -

Could you please respond and accept the answer if it solves your issue?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

5,792 views 4 12
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