return code 22, fatal: git-http-push-failed

后端 未结 5 1876
南笙
南笙 2021-01-14 17:02

I made my own git repo on my server using git init --bare. I added some files there and then cloned my repo from myserver by git clone http://www.example.

5条回答
  •  醉酒成梦
    2021-01-14 17:15

    /repo/.ssh/authorized_keys won't mean anything to your ssh daemon on your server: sshd will look for that file under the home of the user making the ssh query: /home/user/.ssh/authorized_key

    Plus, if you are using https://... urls, you won't use ssh at all anyway. For an ssh url to work, you would need an Apache server properly configure to call the git-http-backend script.
    See for instance this git-http-backend question.

提交回复
热议问题