How to configure SSH for gitlab?

In my Github experience, I have argued that I need to clone the repository with my user as user@gitlabhost.com . But when I try to do this, it does not recognize my password from gitlab. Only cloning is done with the gitlab user.

Can someone please help me ??? - How do I configure gitlab permissions?

+10
git-clone ssh
source share
2 answers

If you followed the instructions for installing gitlab, then you should have installed it on the linux box under a user named git . Usually in such a folder

 /home/git/gitlab 

Therefore, you must use git@gitlabhost.com

I'm not sure what you mean by “SSH configuration”. But since each user is expected to use their own key pair, there should be no problem accessing the gitlab managed repository using regular git commands. Both of the following should work

 git clone ssh:// git@gitlabhost.com /group/repo.git git clone git@gitlabhost.com :group/repo.git 

Each user must establish their own git identity (on their local machines) using

 git config --global user.name "elitmus" git config --global user.email " abc@gmail.com " 

so that git can uniquely identify each user.

+15
source share

In my experience, I had to connect to the gitlab server as a git user and modify the authenticated_keys file as it was filled with a bunch of random # . after that I added my SSH key to the GitLab GUI and was able to clone and move normally.

Hope this helps.

+1
source share

All Articles