GitLab requires git@localhost password to push to a repo

前端 未结 15 2037
梦毁少年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 04:03

    If the installation went well, that means your gitlab is able to clone the gitolite-admin repo without issue.
    But you say it passes the status check, which means you are using, for ssh connection, an account named 'gitlab'.

    That also means that any client will have to ssh with that same account 'gitlab', not 'git'.
    So if your ssh key has been added through the gitlab interface, then you can git clone/git push to a remote name origin which would have the address 'gitlab@server'

    To debug some more, check out some other tips mentioned in "Setup Git Remote SSH (git-upload-pack / git-receive-pack)":

    If you cannot push locally (on the server itself, that is on 'localhost'), try at least a:

    ssh -vvvT gitlab@localhost
    

    It shouldn't require any password, since /home/gitlab/.ssh/id_rsa and /home/gitlab/.ssh/id_rsa.pub both exist.

提交回复
热议问题