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

git push -u origin master -> Permission Denied

When I try pushing my git repository to the repository on Bitbucket, I get the following error:

 

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

 

Sorry, I'm pretty new to github and Bitbucket, and am still trying to get the hang of this. I was trying to use a private repository. Not sure if that is part of the issue.

2 answers

It turns out that the answer was to create a new ssh key on my own computer and to copy the public key to bitbucket. After that, push origin master worked just fine.

@wdchild  That's great. Thank you for sharing the answer.

Hi @wdchild ,

Please do find the link "https://www.atlassian.com/git"

and this is the commands help you out to push the file.

  1. git init
  2. git add filename
  3. git commit -m "message"
  4. git remote add origin "url of repo"
  5. git push --set-upstream origin master
  6. git push origin master

Thank you,

Regards,

Prashant

Thanks for answering, but I still get the error at step 5.

 

...$ git push --set-upstream 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.

Like animesh1992 likes this

Same error. I get "Unauthorized" fatal: Could not read from remote repo.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events