Open SSH-Server auf windows server 2022 und Windows 11 Pro

You would like to show your appreciation for our help 8-o. Gladly. 🙏 We thank you for your donation!

In-house Apt-Repo: https://apt.iteas.at
GITLAB:

Das ganze kann sehr einfach über die Windows PS gelöst werden. Wichtig ist das der Server/Desktop Online ist.

Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' #Prüfung welche Versionen vorhanden sind
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 #Die Version kann sich ändern
Start-Service -Name "sshd"
Set-Service -Name "sshd" -StartupType Automatic

Und noch eine Firewallregel erstellen:

New-NetFirewallRule -Name "SSH" `
-DisplayName "SSH" `
-Description "Allow SSH" `
-Profile Any `
-Direction Inbound `
-Action Allow `
-Protocol TCP `
-Program Any `
-LocalAddress Any `
-RemoteAddress Any `
-LocalPort 22 `
-RemotePort Any