Install SSH Server on Windows Server

Install SSH Server on Windows Server

In this article, you’ll learn how to install SSH server on Windows Server.

What is OpenSSH?

OpenSSH is probably the most widely used Linux SSH service, basically it is a suite of secure networking software/tools based on the SSH protocol.

Read more: OpenSSH essentials.

First, run Powershell as an admin. Then, install the OpenSSH Server feature:

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

Image 1 for Install SSH Server - Windows Server

This may take a few minutes to download and install:

Result

Image 2 for Install SSH Server - Windows Server

Now, let's start the SSH service:

Start-Service sshd

Set SSH to auto-start on reboot:

Set-Service -Name sshd -StartupType 'Automatic'

Allow SSH through Windows Firewall:

New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

Image 3 for Install SSH Server - Windows Server

To check the status of the SSH service, use the following command:

Get-Service sshd 

Image 4 for Install SSH Server - Windows Server

Now try connecting to this system from another machine on the same network.

Articles recommended by the author

  1. SSH: Unlocking Its Power – A Beginners Guide to SSH

© 2026 A. Maharjan