Gitosis requires password even though the public key is given

前端 未结 11 790
挽巷
挽巷 2021-02-07 03:51

I\'m confronted with some problems when trying to configure gitosis on my Archlinux

http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis

I referr

相关标签:
11条回答
  • 2021-02-07 04:30

    An empty repository was created because that's just how git works: it has to init a repo before it can start pulling remote objects into it. Unfortunately this means you'll have to manually delete the empty repo before you try cloning again.

    As for why the clone failed, it looks like you're using the wrong syntax for the remote repository path; git clone doesn't use scp syntax. In fact, if you don't specify a clone protocol, I believe it assumes the git protocol rather than ssh, which would probably be why it asked you for a password. Try this instead:

    $ git clone ssh://gitosis@host/~/gitosis-admin.git
    
    0 讨论(0)
  • 2021-02-07 04:35

    Same problem, and in my case was that I had wrong authorized_keys in .ssh/. I must have messed it up at some point ...

    0 讨论(0)
  • 2021-02-07 04:36

    I finally got it working like this

    git clone ssh://git@host:1337/home/git/repositories/gitosis-admin.git
    

    where 1337 the port ssh is using.

    0 讨论(0)
  • 2021-02-07 04:40

    I had the same problem on ubuntu,

    It worked with git clone ssh://git@serverName/absolutePath/gitosis-admin.git

    0 讨论(0)
  • 2021-02-07 04:41

    To gain more insight into auth issues, gather verbose debug log details: by using a

    ssh -vvv gitosis@gitosis_host

    direct manual-connect trick (which, phrased most importantly/generally, actually uses the most precise/direct context reference; in this case: actual ssh mechanisms rather than the tool-distant - and thus by necessity less precise - git handling!).

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