3 lines
185 B
PowerShell
Executable File
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 |