Forums

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

SSH: clone worked, pull doesnt

Jonas Bogenberger
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!
April 10, 2020

Hello there,

I set up a bitbucket private repository -> everything worked fine using https. I then continued to configure my rsa key pair for ssh and did:

1. upload the public key to bitbucket

2. add the private key to my ssh-agent

3. test the connection using "ssh -T git@bitbucket.org" and it worked

4. successfully cloned the repository to my laptop: it even asked for the correct ssh-key-pair-passphrase

However, every other git command (e.g. pull) does not work with error message:

"Permission denied (publickey).
fatal: Could not read from remote repository."

Besides, the used rsa-key-pair is the only one inside my .ssh directory and I set up transparent git encryption following this guide and it worked fine before.

Help would be much appreciated... Any ideas?

1 answer

1 accepted

0 votes
Answer accepted
Jonas Bogenberger
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!
April 11, 2020

Ok Update: turns out I accidentally overwrote a important part of .git/config

Now is working fine

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events