Hello,
Thank you for posting in the Microsoft community forum.
According to my research, OpenSSH is not included as a built-in feature in Windows Server 2016. The latest release of OpenSSH GitHub to date is v9.5.0.0p1-Beta.
Here are the general steps to install OpenSSH Server on a Windows 2016 server for your reference:
- Fromhttps://github.com/PowerShell/Win32-OpenSSH/releases, download the latest .zip of OpenSSH. The typical choice for Windows 2016 is to download the [OpenSSH-Win64.zip] option.
- Extract the OpenSSH-Win64.zip file and save it on your console. The easiest way to find it locally would be to save it in your [C:\Program Files].
- Open your console’s Control Panel. In the System and Security section, open up System. Click on Advanced System Settings and, in the System Properties dialog box, click Environmental Variables.
- In the System Variables section on the bottom half of the dialog, select Path. Click Edit….
- Click New. Add the OpenSSH folder path. After you have added the folder, you may now close the System Properties> dialog.
- Run Powershell as an Administrator. Enter the OpenSSH folder path in the appropriate field. To install OpenSSH, run the
'.\install-sshd.ps1'
command. If the line
“sshd and ssh-agent services successfully installed”
appears, installation was successful.
- To generate a host key, run the ‘.\ssh-keygen.exe -A’ command.
- Reopen your Control Panel and click on Administrative Service/Administrative Tools. In the resulting dialog, click Services. Find ‘sshd’ in the list and change the startup type to Automatic. Then, run sshd.
For more information please refer to: How to Install an OpenSSH Server/Client on A Windows 2016 Server (hostadvice.com)
Note:
This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
I hope this helps.
Best regards
Jacen