Create
cancel
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

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@10.0.110.4:7999/ceye/ceye-drools.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@10.0.110.4 -p 7999

....

debug1: Authentication succeeded (publickey).
Authenticated to 10.0.110.4 ([10.0.110.4]: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.

Regards

Lasse Langhorn

Lasse:

 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
DEPLOYMENT TYPE
SERVER
VERSION
6.6
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

103 views 0 2
Join discussion

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