Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't do any pull or push to the repository

Sangeeth
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!
February 17, 2021

I generated the ssh key using sourcetree but I'm not able to pull or push to the repository. It shows that public key access denied, and I changed the ssh key and tried again but the result is same. How to fix this.?

1 answer

0 votes
Charlie Misonne
Community Champion
February 18, 2021

I assume you also added the public key to your Bitbucket profile?

Aside from that I've seen a similar issue where the ssh keys are not saved in the correct directory.
Normally GIT will look in the .ssh subdirectory of your home directory.

But this can depend on which git you are using. Are you using the embedded git or system git? Take a look at Using Embedded Git or System Git in SourceTree  for more info about that.

Sangeeth
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!
February 18, 2021

ya I added the public key when created the new key. Two days before i faced the same problem, i just deleted all the keys from ssh directory and bitbucket profile and created a new one using source tree and added to the profile also. Then I was able to do the push/pull. But after sometime it shows the error public key access denied. sometime it works and some other time it wont.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events