Instructions on installing OpenSSH on your Windows Server.
Windows 2016 and below
Download OpenSSH
Go to github.com«, scroll to the [Assets] section.
Choose [OpenSSH-Win32.zip] and download it.
Once downloaded, unzip the file.
Hold down [Shift] + [Ctrl] and [Left-click] in the folder.
Choose [Open PowerShell window here].
Paste this into PS and click [Enter].
[PowerShell - Install OpenSSH Command]
CFFCS | CarrzSynEdit: | PS (PowerShell)
.\install-sshd.ps1


Start Service:
[PowerShell - OpenSSH (Start Service)]
CFFCS | CarrzSynEdit: | PS (PowerShell)
Set-Service -Name sshd -StartupType 'Automatic'
Start-Service sshd

Windows 2019 and Above
Method 1: Using [PowerShell]
Open PowerShell as Administrator.
[Verify OpenSSH availability:]
CFFCS | CarrzSynEdit: | PS (PowerShell)
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Server*'

[Install the Server component:]
CFFCS | CarrzSynEdit: | PS (PowerShell)
Add-WindowsCapability -Online -Name OpenSSH.Server0.0.1.0

Note: Should return Online: True.
[Start the service and set it to Automatic:]
CFFCS | CarrzSynEdit: | PS (PowerShell)
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'

[Verify firewall rule (created automatically):]
CFFCS | CarrzSynEdit: | PS (PowerShell)
Get-NetFirewallRule -Name *ssh*




Method 2: Using Settings GUI
Open [Settings] ▶ [System] ▶ [Optional Features].
Click [View features] (or [Add a feature]).
Select [OpenSSH Server] (and [Client] if desired), then click [Install].
Once installed, open Services (services.msc), find [OpenSSH SSH Server,] and set the [startup type] to [Automatic ]and [Start] it.