Hello,
I am having troubles with pushing my code to remote repo.
i am receiving this information:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What I already did.
1. I added public ssh key to bitbucket account
2. I added private identity to my ssh-agent
3. I have probably correctly set repository as remote is as follows:
$ git remote get-url origin
git@bitbucket.org:zakupyapp/zakupyapp-backend.git
Can anyone provide with any solution? I cannot think of anything else I should do.
Hi @zychster,
In the 3rd step the correct command should be set-url but I assume it was a typo here. To check your actual remote url use this command in your working directory:
git remote -v
If the URL looks good, it's really hard to tell what went wrong without more details. You can try troubleshooting SSH connection and see which key is selected and then declined by Bitbucket – it might be not the one you created, this depends on your client-side SSH configuration, for instance.
$ export GIT_SSH_COMMAND='ssh -vvv'
$ git push
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.