Skip to content

Building OpenSSH for Windows (using LibreSSL crypto)

Tess Gauthier edited this page Feb 23, 2022 · 14 revisions

Download Latest Source

Building OpenSSH for Windows Using Visual Studio, 2015 or newer [Recommended]

  • Download and Install VS 2015, or newer, with Desktop Development with C++ - latest install here
  • Install Windows SDK 10.0.17663.0 during Visual Studio install, or download from here
  • Install Microsoft Build Tools 2015 during Visual Studio install, or download from here. Note, Build Tools 2015 are needed regardless of the Visual Studio version installed
  • Open "contrib\win32\openssh\Win32-OpenSSH.sln" in Visual Studio, ensure platform toolset is set to "no upgrade" and Windows SDK is set to "10.0.17663.0"
  • If necessary, change the configuration and architecture from the middle toolbar
  • Build the Win32-OpenSSH binaries

Building OpenSSH for Windows Using Build Script

In Powershell:

  • cd repository-root
  • ipmo .\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force
  • Start-OpenSSHBuild -Configuration <Release|Debug> -NativeHostArch <x64|x86>

Deploying OpenSSH for Windows

  • Start-OpenSSHPackage -Configuration <Release|Debug> -NativeHostArch <x64|x86>
  • Above generates Zipped binary and symbols payload. Follow further installation instructions here.
Clone this wiki locally