Windows 10: Windows Defender Firewall Blocking SSH in Windows Terminal

Discus and support Windows Defender Firewall Blocking SSH in Windows Terminal in AntiVirus, Firewalls and System Security to solve the problem; Hi, I am tearing my hair out trying to get this to work.GitBash works fine, but Defender blocks all ssh requests through windows terminal.If I turn... Discussion in 'AntiVirus, Firewalls and System Security' started by Josh 69420, May 13, 2023.

  1. Windows Defender Firewall Blocking SSH in Windows Terminal


    Hi, I am tearing my hair out trying to get this to work.GitBash works fine, but Defender blocks all ssh requests through windows terminal.If I turn defender off, WT works fine, but it times out on port 22 as soon as I turn defender back on.Once again GitBash works great.I've tried added various rules but the firewall seems to ignore them.Please help this is driving me insane.Thank you.

    :)
     
    Josh 69420, May 13, 2023
    #1
  2. Matin222 Win User

    Error 10054 when using SSH with Windows Defender Firewall enabled

    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 with 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 (as indicated by the fact that the connection is not dropped with commands with little output), however it does not occur when the firewall is off. I therefore thought the problem could be related to Path MTU Discovery and the firewall blocking ICMP - I tried adding a Firewall Inbound custom rule allowing all ICMP v4 packets, but 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, our how to troubleshoot it?

    Thank you!
     
    Matin222, May 13, 2023
    #2
  3. Arctucas Win User
    Windows Firewall blocking websites

    I have blocked IP addresses, e.g. 255.255.255.255, not URLs, e.g. somewebsite.co m.

    As far as unblocking, look at your Windows Firewall rules. Do you see anything that is blocked? If you do, click on the Scope tab and see what is listed there.
     
    Arctucas, May 13, 2023
    #3
  4. Arctucas Win User

    Windows Defender Firewall Blocking SSH in Windows Terminal

    Windows Firewall blocking websites

    I do not wish to confuse the issue, but yes, Windows Firewall is able block specific IP addresses. I have about two dozen blocked right now.
     
    Arctucas, May 13, 2023
    #4
Thema:

Windows Defender Firewall Blocking SSH in Windows Terminal

Loading...
  1. Windows Defender Firewall Blocking SSH in Windows Terminal - Similar Threads - Defender Firewall Blocking

  2. Windows Defender Firewall Blocking SSH in Windows Terminal

    in Windows 10 Gaming
    Windows Defender Firewall Blocking SSH in Windows Terminal: Hi, I am tearing my hair out trying to get this to work.GitBash works fine, but Defender blocks all ssh requests through windows terminal.If I turn defender off, WT works fine, but it times out on port 22 as soon as I turn defender back on.Once again GitBash works great.I've...
  3. Windows Defender Firewall Blocking SSH in Windows Terminal

    in Windows 10 Software and Apps
    Windows Defender Firewall Blocking SSH in Windows Terminal: Hi, I am tearing my hair out trying to get this to work.GitBash works fine, but Defender blocks all ssh requests through windows terminal.If I turn defender off, WT works fine, but it times out on port 22 as soon as I turn defender back on.Once again GitBash works great.I've...
  4. Using SSH Using Windows Terminal

    in Windows 10 Ask Insider
    Using SSH Using Windows Terminal: Hey Everyone, I made a quick video showing how easy it is to setup a button on Windows Terminal to save SSH sessions. I hope you find it helpful! https://www.youtube.com/watch?v=2xfBpN9fHuM&feature=youtu.be submitted by /u/DevOps-Journey [link] [comments]...
  5. Windows Defender Firewall is blocking printing

    in Windows 10 Network and Sharing
    Windows Defender Firewall is blocking printing: I have a Canon LBP 5050N printer on my LAN at a fixed IP address 192.168.0.10. This is a new PC running Windows 10 Build 19041 i.e. the latest, May edition. Windows Defender Firewall is blocking printing. If I turn WDF off for private networks, printing operates. I've...
  6. ssh terminal emulation

    in Windows 10 Network and Sharing
    ssh terminal emulation: I'm using Windows 10 ssh to connect to a linux server for a new project. To what value should I set my linux TERM environment variable? https://answers.microsoft.com/en-us/windows/forum/all/ssh-terminal-emulation/ef82365d-257b-42c9-8a15-3bd92bcf73c6
  7. Windows Defender Firewall is blocking Microsoft services

    in Windows 10 Installation and Upgrade
    Windows Defender Firewall is blocking Microsoft services: Hello, I noticed that after the latest optional software update for Windows 10, the Windows Defender firewall is blocking Microsoft services: KB4550945 In my case, it is not allowing downloading or logging in on the App Store. It even blocks logging in to outlook.com via...
  8. Defender firewall block

    in AntiVirus, Firewalls and System Security
    Defender firewall block: This opened when I logged in: Windows Defender Firewall has blocked some features of SchedulerConsole on all public and private networks. Name: SchedulerConsole Publisher: Unknown Path: C:\program files...
  9. Windows defender firewall blocked app

    in AntiVirus, Firewalls and System Security
    Windows defender firewall blocked app: What does this mean? When I tried opening iTunes on my laptop C:\program files\windowsapps\appleinc.itunes_12096.3.41072.0_x64__nzyj5cx40ttqa\itunes.exe...
  10. Windows 10 Firewall Blocks Defender Update

    in AntiVirus, Firewalls and System Security
    Windows 10 Firewall Blocks Defender Update: Hi, all. I just joined minutes ago. My Windows 10 Firewall blocks my Defender from downloading new definitions (WTF???). It used to work fine. If I turn off Firewall, it updates no problem. I've created as many inbound and outbound rules as I can think of for all of the...