I'm having trouble setting up a Git server on a computer running Windows 2003 Server.
I installed CopSSH on the server, and can successfully connect to the server with SSH. Then, I installed MSysGit on the server (Just the compiled executables). Finally, I used ln -s
in the CopSSH Bash shell to create links to the Git executables (from MSysGit's bin
) in CopSSH's bin
directory.
I can successfully connect to the server and use Git over SSH:
$ ssh git@<server>
git@<server>'s password:
Last login: Sun Dec 4 10:10:08 from <computer>
git@<server> ~
$ cd /cygdrive/c/gitRepos/
git@<server> /cygdrive/c/gitRepos/
$ mkdir test.git
git@<server> /cygdrive/c/gitRepos/
$ cd test.git
git@<server> /cygdrive/c/gitRepos/test.git
$ git init --bare
Initialized empty Git repository in C:/gitRepos/test.git/
git@<server> /cygdrive/c/gitRepos/test.git
$ exit
logout
Connection to <server> closed
But, when I try to clone from the server, it doesn't work:
$ git clone ssh://git@<server>:22/cygdrive/c/gitRepos/test.git
Cloning into test...
git@<server>'s password:
fatal: The remote end hung up unexpectedly
How can I get this to work?
Please take a look on this answer. Maybe you have the same issue?