Greetings. I am a new gitlab administrator. I have successfully installed gitlab and imported repositories. However, I’m experiencing a strange problem that I couldn’t find a solution to despite hours of searching. I would appreciate if someone could point me in the right direction.
Cloning repositories via HTTP works normally, but SSH does not. I am able to connect and gitlab-shell runs normally. My user is properly authenticated. The gitlab “check” does not show any errors. Permissions are correct. However, the path does not work as expected. See below.
Does NOT Work
git clone ssh://firstname.lastname@example.org:group/project.git
The project you were looking for could not be found.
gitlab-shell: Access denied for git command git-upload-pack ‘/project.git’ by user with key key-2.
git clone ssh://email@example.com:group/group/project.git
gitlab-shell: executing git command git-upload-pack /var/opt/gitlab/git-data/repositories/group/project.git for user with key key-2.
As you can see, adding an extra group directory in the path (that does not exist) allows the clone to succeed. I have verified that the correct path is actually being supplied to gitlab-shell via SSH in verbose mode. I’m sure there is some simple configuration I’m missing. If it makes a difference, I am using Apache instead of nginx. Any ideas? Thanks!