Missed Team ’24? Catch up on announcements here.

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

Having problem with pushing to rempte

zychster
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2019

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.

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events