“ERROR:gitosis.serve.main:Repository read access denied” when trying to clone a git repo

后端 未结 3 570
野的像风
野的像风 2021-02-06 00:08

I have one desktop PC running Ubuntu 11.04 and one Netbook running Debian 6.0.1a. I have installed and configured git as described here, on my desktop PC.

I am also lear

相关标签:
3条回答
  • 2021-02-06 01:02

    I got the same error while I was trying push new repository. It was caused by missing rights on /var/git/repositories/gitosis-admin.git/hooks/post-update

    sudo chmod a+x /var/git/repositories/gitosis-admin.git/hooks/post-update
    
    0 讨论(0)
  • 2021-02-06 01:11

    This frequently gets (1, 2, 3, and myself) resolved by re-generating the ssh keypair

    ssh-keygen -t rsa
    

    and adding it at the redmine account settings.

    0 讨论(0)
  • 2021-02-06 01:12

    First I would use gitolite instead. Gitosis is no longer actively developed.

    Check that you need to name the public key to your user name that appears in the config. Your public key that you commit should be renamed to jobeet.pub.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题