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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SSH: clone worked, pull doesnt

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" 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

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
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,878 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you