Git through SSH Server on Windows, cannot find shared libraries

I had to configure an SSH server to host my Git repository on my local network. I followed this TimDavis tutorial , hoping that I could create a secure Git repository.

I tested my connection with Putty and it was successful. My only problem was that I cannot run the "git" command in the console. Then I tried to clone my repository, and it was an error that printed:

/usr/bin/git-upload-pack.exe: error while loading shared libraries: 
libiconv2.dll: cannot open shared object file: 
No such file or directory

Also, when I ran the git command in Putty Bash, which was connected to the SSH server, it was an error that I encountered:

/usr/bin/git.exe: error while loading shared libraries: pthreadGC2.dll: 
cannot open shared object file: No such file or directory

It seems that all my problems were about missing libraries, but I don’t know how to solve them. I am using Windows 7 as an operating system.

thank

+5
source share
4 answers

I also got this error. I tried to copy not only git.exe, but the corresponding DLLs (libiconv, etc.) from the bin git directory to the CopSsh bin directory, and it left.

+4
source

: http://christopherpeplin.com/2013/01/cygwin-git-https/ sasl ca-certificate. , cygwin libsasl2 ca- ( - SSL, - , SSL).

+6

, : http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/

. \home \.bashrc: export PATH = $PATH:/cygdrive/d/programs/ Git/bin:/cygdrive/d/programs/Git/libexec/git -core

d/programs/ Git - d:\programs\Git - msysgit

+2

All Articles