How to config SSH for gitlab?

前端 未结 3 601
悲&欢浪女
悲&欢浪女 2021-02-04 07:17

In my experience of Github, I tought that I need to clone a repository with my user like user@gitlabhost.com. But when I try this, then it does not recognize my pas

3条回答
  •  孤独总比滥情好
    2021-02-04 07:41

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

    Hope that helps.

提交回复
热议问题