Ssh server on windows 11

From UVOO Tech Wiki
Jump to navigation Jump to search

https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

winget install Microsoft.OpenSSH.Beta

netstat -an | findstr LISTEN | findstr 22

New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
or
netsh advfirewall firewall add rule name=”SSHD service” dir=in action=allow protocol=TCP localport=22