Missed Team ’24? Catch up on announcements here.

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

git clone always fails with ssh key

CyberSage July 12, 2020

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

0 votes
CyberSage July 12, 2020

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?

0 votes
Lasse Langhorn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2020

Hi @CyberSage

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.6
TAGS
AUG Leaders

Atlassian Community Events