I have a workstation with Win 10 on which I installed OpenSSH server. If I try to connect to it (from another machine with Win 10 using ssh in a command prompt) I see it gives the following error:
ssh: connect to host Test3 port 22: Connection timed out
On wireshark Syn packets are sent but no answer is received back. If I dissable Windows firewall on destination then connection is established.
I want to leave the firewall enabled and disable only ssh port.
You can easily use netsh.exe.
netsh advfirewall firewall add rule name="Open SSH Port 22" dir=in action=allow protocol=TCP localport=22 remoteip=any
You can also change remoteip to a specific host:
remoteip=any|localsubnet|dns|dhcp|wins|defaultgateway|<IPv4 address>|<IPv6 address>|<subnet>|<range>|<list>
I found on microsoft site a link which allow to do it using graphical interface. I solved my problem performing the following steps as administrator:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With