Reputation: 25
As the title says, I'm trying to clone a repository (named devops) that exists on a local Gitlab server from another computer on my network.
My setup is as follows:
/etc/hosts
file:
192.168.1.20 gitlab.test
ssh -p2222 [email protected]
to access gitlab-serverHowever, when I run git clone [email protected]:jadedInsomnia89/devops.git
on the deployment-server, I get the following error:
Cloning into 'devops'...
ssh: connect to host gitlab.test port 22: Connection refused.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
How do I properly access the GitLab server on the gitlab-server OS? Please let me know any other details you may need.
Note: I am setting up another computer for the deployment-server because the Mac doesn't have enough RAM to simultaneously run a deployment server, Jenkins server, and a GitLab server on 3 separate virtual operating systems like the course I am currently attending does.
Upvotes: 0
Views: 1474
Reputation: 6842
You will need to add your port number.
Try this:
git clone ssh://[email protected]:2222/jadedInsomnia89/devops.git
Upvotes: 1