sameersbn / sameersbn/docker-gitlab

Failed to git clone through ssh

Open
#2,353 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In this case, I have 2 containers which are GitLab CE and ubuntu machine, I want to clone a repo in Ubuntu machine using SSH protocol but it seems getting a failed like the below:

Note: I've configured GitLab host URL to the container name instead of the domain.

$ git clone git@gitlab-ce-JZGNEecD:root/django-nv.git
Cloning into 'django-nv'...
The authenticity of host 'gitlab-ce-jzgneecd (x.x.x.x)' can't be established.
ECDSA key fingerprint is SHA256:j2YNp45KLBNRwlSe5CYjNVWSAVG6X5eewpwbhpQIE5I.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab-ce-jzgneecd,x.x.x.x' (ECDSA) to the list of known hosts.
fatal: 'root/django-nv.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

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

No repository files or tests are named. Start by reproducing the shown git clone command and inspect the configured GitLab host URL, SSH endpoint, and repository path; done means the repository can be cloned successfully from the Ubuntu container.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git, gitlab
Domain
devops, infrastructure
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.