Difference between revisions of "Ssh server on windows 11"
Jump to navigation
Jump to search
(Created page with "``` Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' winget install Microsoft.OpenSSH.Beta netstat -an | findstr LISTEN | findstr 22 New-NetFirewallRule -...") |
|||
Line 1: | Line 1: | ||
+ | |||
+ | https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement | ||
+ | |||
``` | ``` | ||
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' | Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' |
Latest revision as of 23:54, 19 April 2023
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