在Windows中使用SSH服务器,无法找到共享库

Roy*_*uta 5 windows git ssh putty

我是设置SSH服务器来将我的Git存储库托管到我的局域网.我遵循TimDavis的这个教程,希望我能够建立一个安全的Git存储库.

我用Putty测试了我的连接并且它成功了.我唯一的问题是我无法在控制台中运行"git"命令.然后我尝试克隆我的存储库,这是错误的结果:

/usr/bin/git-upload-pack.exe: error while loading shared libraries: 
libiconv2.dll: cannot open shared object file: 
No such file or directory
Run Code Online (Sandbox Code Playgroud)

此外,当我在连接到SSH服务器的Putty Bash中运行"git"命令时,这是我遇到的错误:

/usr/bin/git.exe: error while loading shared libraries: pthreadGC2.dll: 
cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我似乎所有的问题都是关于丢失的库,但我不知道如何解决它.我使用Windows 7作为操作系统.

谢谢

小智 6

如下所述:http://christopherpeplin.com/2013/01/cygwin-git-https/缺少sasl库和ca证书.通过运行cygwin的设置,安装libsasl2和ca-certificates包来安装它们(第一个是支持SSL,第二个是用于SSL身份验证的根证书).


Ste*_*eve 4

我也遇到这个错误。我尝试不仅将 git.exe 复制,还尝试将相应的 dll(libiconv 等)从 git bin 目录复制到 CopSsh bin 目录,然后它就消失了。