sameersbn / sameersbn/docker-gitlab

Testing ssh with local network work but externally will ask for password.

Open
#1,469 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

I have tested Gitlab internally and everything is working. Ldap, push and pull, etc. I have set up a domain and connect to Gitlab just fine and working using https://gitlab.mydomain.com. The problem I am running into is cloning, pushing, and pulling using the domain name. example: Existing Git repository
cd existing_repo
git remote add origin git@gitlab.mydomain.com:username/my-project.git
git push -u origin --all
Once it does the push, it requested me to enter the password, but if I do git remote add origin git@local IP of Gitlab it doesn't require me to enter the password because the ssh key authentication is working. I have tested with the command ssh -T git@mylocalIp and it welcome me but if I do ssh -T git@gitlab.mydomain.com it would prompt me for the password.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the two reported entry points, ssh -T git@mylocalIp and ssh -T git@gitlab.mydomain.com, then reproduce the push using the domain-based remote. Trace why the domain endpoint requests a password despite the local IP accepting the SSH key; done means domain-based clone, push, and pull authenticate without that prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
authentication, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.