Kar*_*ren 4 git windows-firewall windows-7
刚刚从XP更新到Win7.
我正在使用添加了Tinywall的Windows防火墙(提供更多控制)
但是当我使用Git Bash时,防火墙会阻止所有命令.如果我禁用防火墙,那么一切正常
我无法确定添加到TinyWall白名单的正确例外.
我添加了shell窗口以及应用程序异常的git.exe,但仍然没有.我添加的这些异常程序路径:
C:\Program Files (x86)\Git\git-cheetah\..\bin\sh.exe
C:\Program Files (x86)\Git\bin\git.exe
Run Code Online (Sandbox Code Playgroud)
错误示例:
$ git pull
ssh: connect to host xxx.xxx.xxx port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
Kar*_*ren 11
要让TinyWall通过SSH使用git,您必须列入以下列表:
sh.exe
git.exe
ssh.exe
Run Code Online (Sandbox Code Playgroud)
要通过HTTPS使用git,您只需要白名单:
C:\Program Files (x86)\Git\libexec\git-core\git-remote-https.exe
Run Code Online (Sandbox Code Playgroud)
要么
C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe
Run Code Online (Sandbox Code Playgroud)