Windows Firewall, Tinywall, and GIT

Just finally upgraded to Win7 with XP.
I am using Windows Firewall with Tinywall added (gives more control)

But when I use Git Bash, the firewall blocks all commands. If I turn off the firewall, then everything will work fine

I cannot determine the correct exceptions to add to the TinyWall whitelist.

I added a shell window as well as git.exe for application exceptions, but still did not go. These paths of exception programs I added:

C:\Program Files (x86)\Git\git-cheetah\..\bin\sh.exe C:\Program Files (x86)\Git\bin\git.exe 

Error example:

 $ 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. 
+4
source share
3 answers

To get TinyWall to work with git via SSH, you must do a whitelist:

 sh.exe git.exe ssh.exe 

To work with git over HTTPS, you only need a whitelist:

 C:\Program Files (x86)\Git\libexec\git-core\git-remote-https.exe 

or

 C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe 
+11
source

If rebooting your shell on Widows (after installing the whitelist) does not work, a workaround would be to use port 443 for the ssh git session.
See this answer , also described in detail on GitHub " using ssh over the https port ".

Or you can try switching to https url if your server supports it.

0
source

On Windows 10 with TinyWall, I had to add an exception for:

C:\Program Files\Git\mingw64\libexec\git-core\git-credential-manager.exe

in addition to:

C:\Program Files\Git\bin\git.exe

C:\Program Files\Git\bin\sh.exe

C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe

0
source

Source: https://habr.com/ru/post/1204412/


All Articles