OpenSSH in Windows - LucianCumpata/DevOps GitHub Wiki

The OpenSSH client and server are now available as a supported Feature-on-Demand in Windows Server 2019 and Windows 10 1809!

  • Install OpenSSH with PowerShell

First launch PowerShell as an Administrator and verify if OpenSSH features are available:

Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'

There are two types: client and server. You should get an output like this:

Name : OpenSSH.Client~~~~0.0.1.0

State : NotPresent

Name : OpenSSH.Server~~~~0.0.1.0

State : NotPresent

To install client/server features:

Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

  • Uninstall OpenSSH

Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

A Windows restart may be required after uninstall.