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
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.