How to install and configure Open SSH Server in Windows 10

In previous article i describe How to install Open SSH in Windows 10 as Optional Feature and use it. Today i will continue with OpenSSH and i will describe step by step how can install OpenSSH Server in Windows 10 and configure it.

So let's start!!

How to Identify if Windows 10 Open SSH Server installed from GUI

Before start with the installation its better to identify if already OpenSSH Server installed.

  • Click Start and Gear Icon
  • Click in Apps

 

  • From the right side select Manage Optional Features.

 

  • if you see Open SSH Server then it means that already installed.
  • If you can't see this means that you must install the Feature.

 

How to Identify if  Open SSH Server installed from Powershell

 

If you like Powershell you can use the following command to identify if OpenSSH Server already installed

Get-WindowsCapability -Online | ? name -like "openssh*"

Check the State status to identify if is installed or not

  1. State:Installed means it's already installed
  2. State:Not Present means it's not installed

 

How to Install Open SSH Server in Windows 10 from GUI

After identify that OpenSSH Server it's not installed we can proceed to install the OpenSSH Server

  • Click Start and Gear Icon
  • Click in Apps

 

  • From the right side select Manage Optional Features

 

  • Click Add Feature

 

  • Find and click Open SSH Server
  • Click Install

 

 

How to Install Open SSH Server in Windows 10 from Powershell

If you would like to proceed the installation of OpenSSH Server from Powershell you can do it with one command.

Type the following command and wait to finish the installation

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

 

 

How to Configure Open SSH Server in Windows 10

Now it's time to Configure OpenSSH Server to start use it.

  • Open Powershell command as Administrator
  • Type the following command to start the Service
    Start-service sshd
  • Type the following command to add Automatic Startup in Service
  • Set-Service -Name sshd -StartupType 'Automatic'
  • Type the following command to find the Rule for OpenSSH Server in Windows Firewall and verify that is Allow
    Get-NetFirewallRule -Name *ssh*

 

Once you have configure you can start test from any other device with Powershell that use SSH Client

  • Open Powershell as Administrator from device with the OpenSSH Client,
  • Type the following command to connect
  • Ssh username@servername 

or you can use any 3rd part application like WinSCP to test. 

 

I hope my article to help you or explore something new.

Have a nice weekend !!

I invite you to follow me on Twitter or Facebook. If you have any questions, send me an email at info@askme4tech.com

 

Tags
Disqus Comments