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
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
Same problem, and in my case was that I had wrong authorized_keys in .ssh/. I must have messed it up at some point ...
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.
I had the same problem on ubuntu,
It worked with git clone ssh://git@serverName/absolutePath/gitosis-admin.git
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!).