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

Can't push to a remote repository on my github

I am trying to push to a remote repository and it isn't working.

Here is the code I wrote trying to push:

git config --global "I put my registered github username here"

git config --global "I put my email here the same as that on my github"

git push -u origin master Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

The repository exists. Help out guys.



1 answer

OK, GitHub is a little off topic, but here we go.

Make sure that you have configured an ssh key at 

If you haven't, Atlassian have written an article on how to generate one here: 

If you have both of those things covered, then make sure that you have write permission on the repository.

Suggest an answer

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

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

90 views 1 2
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