sameersbn / sameersbn/docker-gitlab
can't clone or push with ssh
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
First of all, I really appreciate your working!
I build gitlab container with docker-compose.yml. The key config is as follows.
gitlab:
ports:
- "10080:80"
- "10022:22"
- "10443:443"
environment
- GITLAB_HOST=git.ifeixiu.com
- GITLAB_PORT=443
- GITLAB_SSH_PORT=22
This is my nginx.conf .
server {
listen 80;
server_name git.ifeixiu.com;
rewrite ^(.*) https://$server_name$1 permanent;
}
server {
listen 443;
server_name git.ifeixiu.com;
ssl on;
ssl_certificate "/usr/local/etc/nginx/git-ifeixiu-com.pem";
ssl_certificate_key "/usr/local/etc/nginx/git-ifeixiu-com.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
# The IP of my vps is 47.91.164.148
proxy_pass http://47.91.164.148:10080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
}
}
Everything works well.
However, I meet a problem when I clone a repository.
dongpeihideMBP2:ccc urmyc$ git clone git@git.ifeixiu.com:ocean7/FeixiuAndroid.git
Cloning into 'FeixiuAndroid'...
git@git.ifeixiu.com's password:
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~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with docker-compose.yml and nginx.conf, then compare the configured SSH port with the published port and the clone URL. Reproduce clone and push with the configured key while checking the relevant container and SSH connection output. Done means SSH authentication succeeds and both clone and push work through the advertised repository URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, git, nginx
- Domain
- devops, infrastructure, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100