Setup OpenSSH Server on a Windows Server

Commands [^1]

  1. Download the latest release from the PowerShell GitHub

  2. Extract to a folder like C:\Program Files\OpenSSH

  3. On an elevated PowerShell terminal

    powershell -ExecutionPolicy Bypass
    cd "\Program Files\OpenSSH"
    .\install-sshd.ps1
    .\ssh-keygen.exe -A
    New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH
    

[^1]: KC's Blog