---
title: 'How to raise OpenSSH on Windows 2019 | Zomro'
description: 'OpenSSH is a tool that allows you to remotely control a server via the command line. While previously using SSH on Windows'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/01_12M6qm8.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to raise OpenSSH on Windows 2019 



# How to raise OpenSSH on Windows 2019

28-08-2023

OpenSSH is a tool that allows you to remotely manage your server via the command line. While previously using SSH on Windows required the installation of third-party programs, OpenSSH can now be installed right on Windows Server 2019. In this article, we will show you how to do that.

## **Step 1: Download the OpenSSH distribution**

Go to [`OpenSSH-Server-Package~31bf3856ad364e35~amd64~~.cab`](https://zomro-static.s3.eu-central-1.amazonaws.com/uploads/posts/files/OpenSSH-Server-Package~31bf3856ad364e35~amd64~~.cab) and download the version intended for Windows Server 2019. (Do not rename the *.cab file) 

## **Step 2: Placement and Unpacking**

Compared to Windows 2012 and Windows 2016, the installation of this OpenSSH package will be different. In this article, we will do most of the work in the PowerShell console. In order for the installation to be successful, download the file `**OpenSSH-Server-Package~31bf3856ad364e35~amd64~~.cab** ` and place it in the root of your C drive

.

![How to raise OpenSSH on Windows 2019 - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/01_12M6qm8.png)

## **Step 3: Install via PowerShell**

Run PowerShell as an administrator. Run the following commands:
    
    
      

Install the downloaded *.cab package:
    
    
     Dism /Online /Add-Package /PackagePath: "C:\OpenSSH-Server-Package~31bf3856ad364e35~amd64~~.cab"

After successful installation you will see the following message: 

`![How to raise OpenSSH on Windows 2019 - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/02_g65q8Qe.png)`

If the installation was successful, we can remove it:
    
    
     Remove-Item "C:\OpenSSH-Server-Package~31bf3856ad364e35~amd64~~.cab"-Force

`![How to raise OpenSSH on Windows 2019 - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/03_4hn64YO.png)`

` `

## **Step 4: Firewall Configuration**

OpenSSH uses TCP port 22. To allow access to the server through this port, add a rule to Windows Firewall:
    
    
       New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH 

`![How to raise OpenSSH on Windows 2019 - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/04_VDrwOTx.png)`

You can also do this manually through the GUI using the "Windows Firewall with Advanced Security" snap-in. But if you have done this correctly, port 22 should open itself after OpenSSH is installed.

## **Step 5: Activate the OpenSSH service**

Open the list of services by typing services.msc. Find "OpenSSH SSH Server", navigate to the service properties, set the service to auto-start, and start the service.

`![How to raise OpenSSH on Windows 2019 - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/05_ZJN3eKT.png)`

`![How to raise OpenSSH on Windows 2019 - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/06_G8xCpth.png)`

Or you can run the following command in the PowerShell console, it will start the SSH service and set it to start automatically on system startup.
    
    
    Start-Service -Name sshd
    
    Set-Service -Name sshd -StartupType Automatic 

`![How to raise OpenSSH on Windows 2019 - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/07_BEZXqHF.png)`

## **Step 6: Verify Port**

To verify that port 22 is active, run the command:
    
    
     netstat -a | findstr "22"

`![How to raise OpenSSH on Windows 2019 - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/08_Y6yS1gB.png)`

If port 22 is listening, it means everything is configured correctly.

**If necessary, you can also set the default PowerShell console for the SSH shell.**
    
    
     New-ItemProperty -Path "HKLM:/SOFTWARE / OpenSSH" -Name DefaultShell -Value "C:Windows / System32 / WindowsPowerShell / v1.0 /powershell.exe" -PropertyType String -Force 

`**![How to raise OpenSSH on Windows 2019 - 9](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/08/29/09_JZZAAIg.png)**`

## ****Step 7: Verify OpenSSH****

Now try connecting to the server from another computer, or even the same computer, using the command:
    
    
      ssh [username]@[server IP_address] 

If everything has been configured correctly, you should be able to successfully connect to the server.

**Closure**

Now you have OpenSSH configured on Windows Server 2019 and you can manage your server remotely without any problems. Remember to regularly check for updates to OpenSSH to ensure your system is secure.

We also suggest you other useful articles:

  * [How to get OpenSSH up on Windows 2012](https://zomro.com/blog/faq/399-kak-podnyat-openssh-na-windows-2012)
  * [How to raise OpenSSH on Windows 2016](https://zomro.com/blog/faq/405-how-to-raise-openssh-on-windows-2016)
  * [Как поднять OpenSSH на Windows 2022](https://zomro.com/rus/blog/faq/456-how-to-install-openssh-on-windows-2022)



Similar articles:

[Check website performance using the hosts file](https://zomro.com/blog/faq/146-proverit-rabotu-sajta-pri-pomoschi-fajla-hosts) [Connecting to the VPS server via SSH using a key](https://zomro.com/blog/faq/235-podkljuchenie-k-serveru-cherez-ssh-po-kljuchu-s-nestandartnym-portom) [How to order DNS hosting service in new billing](https://zomro.com/blog/faq/233-kak-zakazat-uslugu-dns-hostinga-v-novom-billinge) [List of important commands for working with Docker-compose](https://zomro.com/blog/faq/304-spisok-vazhnyh-komand-dlja-raboty-s-docker-compose) [Databases in cPanel](https://zomro.com/blog/faq/178-bazy-dannyh-v-cpanel)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
