Open ocean-7 opened 7 years ago
You are not specifying correct port in GITLAB_SSH_PORT, it should be 10022
I have similar issue. First I was unable to clone. Got it work after the following:
At this point git clone, git fetch started to work. However I'm still unable to perform the push.
I have public group and public project. Hence, the output is
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 274 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: You are not allowed to upload code for this project.
To ssh://git@{hostname}:10022/home/git/data/repositories/test/test-project.git/
! [remote rejected] develop -> develop (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@{hostname}:10022/home/git/data/repositories/test/test-project.git/'
Prior to making the project public I had the message
GitLab: The Project You Were Looking For Could Not Be Found
Looks like gitlab doesn't get my identity right: ssh -T -p 10022 git@{hostname} doesn't show me the Welcome message as promised.
I just figured out what was happening.
The gitlab was indeed unable to get the identity for several reasons:
Removing the link solves the issue and creating .ssh owned by git user solve the issue.
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.
First of all, I really appreciate your working!
I build gitlab container with
docker-compose.yml
. The key config is as follows.This is my
nginx.conf
.Everything works well.
However, I meet a problem when I clone a repository.
I've already add my SSH key to my profile. Why do I have to type in the password? And I don't know what the password exactly is.
looking forward to your help~