GitLab requires git@localhost password to push to a repo

前端 未结 15 1957
梦毁少年i
梦毁少年i 2020-12-30 03:38

I\'m trying to get GitLab up and running on my server. I followed the installation instructions at the gitlab github page and everything went well.

The issue is, whe

15条回答
  •  执笔经年
    2020-12-30 03:51

    There is a ticked for that here.

    To determine the cause of the problem check the logs on the server via sudo grep sshd /var/log/auth.log.

    Until 13 December 2013 commit b24d5d, the problem was caused on the Vagrant development machine due to excess of permissions for .ssh/. You must have:

    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/authorized_keys
    

    or ssh refuses to make the rsa connection and sudo grep sshd /var/log/auth.log says:

    Authentication refused: bad ownership or modes for file /home/git/.ssh/authorized_keys    
    

    The problem has been solved by setting sshd to non sctrict mode for development, allowing it to run correctly even it permissions are too free.

提交回复
热议问题