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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,391
Community Members
 
Community Events
184
Community Groups

git@github.com: Permission denied (publickey).

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

 

Pushing to git@github.com:foobar.git

git@github.com: 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

0 votes
Suvradip Paul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 20, 2021

Hi @snhs1 ,

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 - https://docs.github.com/en/github/authenticating-to-github/troubleshooting-ssh/error-permission-denied-publickey and if you see that you don't see your public key in GitHub, you'll need to add it to Github - https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.

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

Cheers

Suvradip

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events