Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

openssh setup firewall on windows

New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program "C:System32OpenSSHsshd.exe"
Source by winscp.net #
 
PREVIOUS NEXT
Tagged: #openssh #setup #firewall #windows
ADD COMMENT
Topic
Name
9+1 =