Why does ssh connection to gitlab not work (while http push and clone work fine)?

前端 未结 4 2403
野的像风
野的像风 2021-02-20 11:48

I run a x86 raring ringtail on a old pc and having installed bitnami gitlab 5.3.

Here is my error msg when trying to push the first master branch in SSH mode:

         


        
4条回答
  •  一生所求
    2021-02-20 12:14

    I've got the following error trying to clone repo via ssh from freshly installed gitlab:

    fatal: Could not read from remote repository.

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

    Solution was found at https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide#ssh

    Check ssh log /var/log/auth.log and if you find error:

    User git not allowed because account is locked
    

    then edit /etc/shadow and change git:!: to git:*:

    P.S. In my case on CentOS 6.5 it was /var/log/secure and git:!!:

提交回复
热议问题