I have just installed GitLab.
I created a project called project-x.
I have created few users and assigned it to the project.
Now I tried to clone:
For my case, it turns out the gitlab was runnign in docker, and has port mapping 4022/22.
docker
Thus I have to edit ~/.ssh/config to specify the port via Port 4022, e.g:
~/.ssh/config
Port 4022
Host gitlab-local Hostname 192.168.1.101 User git Port 4022 IdentityFile ~/.ssh/id_rsa.pub # LogLevel DEBUG3