I have set up a git server on Windows 8 box with following
- msysgit (on both client and server)
- FreeSSHd ( on server)
While git installation
- on server(windows 8) i chose the insstallation directory to be d:\Experiments\Git
- on client(windows 7) I chose it was default i.e ProgramFiles(x86)
Have setup proper public and private key and copied perivate key from server to client machine
i could SSH into my server using ssh command
$ ssh UserOne@192.168.1.4
Enter passphrase for key '/c/Users/UserOne/.ssh/id_rsa':
UserOne@192.168.1.4's password:
and the result after above is
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Gaurav\Desktop>
BUT when i try to git clone my remote repository i get error...following is the command that i execute and also the result after execution
$ git clone ssh://UserOne@192.168.1.4/d/Experiments/repo/CenRepo /d/Experiments/Playground/New
Cloning into 'd:/Experiments/Playground/New'...
Enter passphrase for key '/c/Users/UserOne/.ssh/id_rsa':
UserOne@192.168.1.4's password:
fatal: protocol error: bad line length character: fata
I saw on some article to execute git-receive-pack, which actually outputs the error if there is any path issue ..but it ran fine ..following is the command and its result.
$ ssh UserOne@192.168.1.4 git-receive-pack d:/Experiments/repo/CenRepo
Enter passphrase for key '/c/Users/UserOne/.ssh/id_rsa':
UserOne@192.168.1.4's password:
00900000000000000000000000000000000000000000 capabilities^{} report-status delete-refs side-band-64k quiet ofs-delta agent=git/1.8.3.msysgit.00000
Please note i put in "d:/Experiments/repo/CenRepo" rather than "/d/Experiments/repo/CenRepo"
I cant write "d:/Experiments/repo/CenRepo" in the git clone command
i am a newbie to git so not much idea about it. Thanks