Hello,
I have an issue when accessing a remote server through SSH when Windows Defender Firewall is ON.
I can connect to my remote host and perform commands which output little text, but as soon as have a command which large output the SSH connection is dropped.
I have tried with multiple SSH clients such as Putty, Bitvise and Termius, and the same problem occurs.
When using Bitvise, I get the following error message when the connection is dropped:
"The SSH connection has terminated with error. Reason: FlowSocketReader: Error receiving bytes. Windows error 10054: An existing connection was forcibly closed by the remote."
This problem does not occur when Windows Defender Firewall is disabled.
What I have tried until now:
- Reset Windows Defender Firewall to default -> did not solve
- Reset Network to default -> did not solve
The problem looks like an MTU size issue, however it does not occur when the firewall is off.
I thought the problem could be related Path MTU Discovery and the firewall blocking ICMP; so I tried adding a Firewall Inbound custom rule allowing all ICMP v4 packets.
This did not solve the issue: either I am not doing it correctly, or it is not the right solution.
Any ideas of what the issue could be?
Thank you!