Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm stuck. After setting up gitosis, cloning gitosis-admin for the first time results in the following:

$ git clone ssh://
Initialized empty Git repository in c:/path/to/my/repo
Using username "git-upload-pack 'git".
fatal: The remote end hung up unexpectedly

Anyone ever experience this problem? Troubleshooting ideas?

share|improve this question
You could try gitolite. This is a new project based on the idea of gitosis, but it's actively maintained. gitosis hasn't really been worked on since 2008. – davr Mar 16 '10 at 4:08
up vote 1 down vote accepted

Turned out this was an SSH issue. Disabling password authentication on the server revealed that running the clone command with git-bash was failing with the following output:

FATAL ERROR: Disconnected: No supported authentication methods available

Stumbling upon this thread led me in the right direction. My GIT_SSH env var was set to use plink. Because of this, git used putty to connect via ssh (despite me expecting openSSH)

Gitosis requires the use of an agent to store your keys for exchange. I started up pageant and BAM, it worked.

share|improve this answer

Actually your real problem was the git clone ssh:// being in an invalid format. You should of either removed the ssh:// or changed the last : to a /. You probably fixed this on a future attempt without realizing it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.