How to Install an OpenSSH Server/Client on A Windows 2016 Server

How to Install an OpenSSH Server/Client on A Windows 2016 Server

Installing an OpenSSH server/client on a Windows 2016 server arms the user with a multi-function set of client/server utilities that facilitate a secure environment when logging into or transferring files to your windows server remotely. It also serves as a security management tool for your public/private key pairs. To install OpenSSH, use the following procedure:

Note

To make the following changes, you must be logged in as SYSTEM or Administrator. If you are installing OpenSSH with Powershell, make sure to launch Powershell as an Administrator.

Check Out Our Leading VPS Hosting for Windows

ProviderUser RatingRecommended For
4.9SecurityVisit Ultahost
4.8PerformanceVisit Kamatera
4.0AffordabilityVisit IONOS

Installing OpenSSH

  1. From https://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.
  2. 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].
  3. 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.
  4. In the System Variables section on the bottom half of the dialog, select Path. Click Edit….
  5. Click New. Add the OpenSSH folder path. After you have added the folder, you may now close the System Properties> dialog.
  6. >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.
  7. To generate a host key, run the ‘.ssh-keygen.exe -A’ command.
  8. 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.

Altering Windows Firewall Settings to Allow SSH Connection

If Windows firewall is running, you may have trouble connecting SSHD to your Windows server. Use the following procedure to change Windows firewall settings to ensure the SSH can connect properly:

  1. In your Control Panel, click System Security and then click on Windows Firewall. Click on Advanced Settings in the panel on the left side of the dialog box.
  2. In the Windows Firewall With Advanced Security dialog, select Inbound Rules from the menu to the left. Select New Rule from the menu on the right.
  3. This will open the New Inbound Rule Wizard dialog. When the New Inbound Rule Wizard dialog opens, select Protocol and Ports from the menu on the left of the dialog. Select the Custom option and click Next.
  4. In the Program section, select All Programs.
  5. Finally, in the Protocols and Ports section, select TCP and enter ‘22’ in the Specific local ports box. Finish and exit the New Inbound Rule Wizard

You have now successfully ensured that your SSH setup can connect to the Windows server.

Special Note: Windows hosting has a reputation for being costly, but that doesn’t have to be the case. Visit our Best Windows hosting reviews page to find the best deals from the top windows hosting providers.


Check out the top 3 Windows hosting services:

Ultahost
$2.90 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8
Kamatera
$4.00 /mo
Starting price
Visit Kamatera
Rating based on expert review
  • User Friendly
    3.5
  • Support
    3.0
  • Features
    3.9
  • Reliability
    4.0
  • Pricing
    4.3
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Windows
Windows VPS
best option

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top