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.
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.
Hi @wdchild ,
Please do find the link "https://www.atlassian.com/git"
and this is the commands help you out to push the file.
Thank you,
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same error. I get "Unauthorized" fatal: Could not read from remote repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.