Files
wPublic/bin/Firewall.ps1
2023-01-17 16:07:43 +00:00

3 lines
185 B
PowerShell
Executable File

New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
Set-Service sshd -StartupType Automatic