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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

git clone always fails with ssh key

I tried to set up personal SSH key to connect to bitbucket so I do not need to enter username/password each time.

the ssh key authentication works; However, git pull always fail.

the user account which the ssh key is associated has admin access to all the projects.

What could be missing?


Bitbucket server 6.6 running on docker.

command and Error:

git pull ssh://git@

Error Response:
Repository not found
The requested repository does not exist, or you do not have permission to access it.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Proof of ssh authentication works:

ssh -Tv git@ -p 7999


debug1: Authentication succeeded (publickey).
Authenticated to ([]:7999).

debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
shell request failed on channel 0


2 answers

Hi @lumin lumin

Please check how you have started the docker container. If the user running Bitbucket process does not have access to the mounted volume where your repo resides, you might have an issue. Investigate where your repositories are stored on disk and check permissions.


Lasse Langhorn


 thanks for the reply.

  The issue is not likely with the docker's file permission, as   I am able to access the repos with user_name/password.  access fails only for SSH key authentication.

  what other root cause could this be?

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,894 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