Skip to main content

Windows 10: Install OpenSSH

Want to try OpenSSH Client? You must run at least Windows 10 Version 1809 to install OpenSSH.

Windows 10 Version 1809

PS C:\Users\Administrator> Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'

Name  : OpenSSH.Client~~~~0.0.1.0
State : Installed

Name  : OpenSSH.Server~~~~0.0.1.0
State : NotPresent

PS C:\Users\Administrator>

Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Install OpenSSH on Windows 10 Version 1809

Start-Service sshd

OpenSSH Client is installed on Microsoft Windows Server 2019.

C:\Users\Administrator>ssh -V
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5

List folder C:\Windows\system32\OpenSSH

List OpenSSH folder on Windows 10

Install OpenSSH Server

PS C:\WINDOWS\system32> Get-WindowsCapability -Online -Name *SSH*


Name         : OpenSSH.Client~~~~0.0.1.0
State        : Installed
DisplayName  : OpenSSH Client
Description  : OpenSSH-based secure shell (SSH) client, for secure key management and access to remote machines.
DownloadSize : 1316207
InstallSize  : 5300763

Name         : OpenSSH.Server~~~~0.0.1.0
State        : NotPresent
DisplayName  : OpenSSH Server
Description  : OpenSSH-based secure shell (SSH) server, for secure key management and access from remote machines.
DownloadSize : 1291185
InstallSize  : 4947581

PS C:\WINDOWS\system32> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Path          :
Online        : True
RestartNeeded : False

PS C:\WINDOWS\system32>

PS C:\WINDOWS\system32> get-service -Name *ssh*

Status   Name               DisplayName
------   ----               -----------
Stopped  ssh-agent          OpenSSH Authentication Agent
Stopped  sshd               OpenSSH SSH Server


PS C:\WINDOWS\system32> Get-Service -Name *ssh*

Status   Name               DisplayName
------   ----               -----------
Stopped  ssh-agent          OpenSSH Authentication Agent
Stopped  sshd               OpenSSH SSH Server


PS C:\WINDOWS\system32> Start-Service sshd
PS C:\WINDOWS\system32> Get-Service -Name *ssh*

Status   Name               DisplayName
------   ----               -----------
Stopped  ssh-agent          OpenSSH Authentication Agent
Running  sshd               OpenSSH SSH Server


PS C:\WINDOWS\system32> Set-Service -Name sshd -StartupType Automatic
PS C:\WINDOWS\system32> Get-Service -Name sshd | Select-Object -Property Name, StartType, Status

Name StartType  Status
---- ---------  ------
sshd Automatic Running

PS C:\WINDOWS\system32>

Popular posts from this blog

Synology: PXE Server - Add memtest86+

I sometimes need to check memory, so I add memtest86+ 5.01 as a choice to my existing PXE Server on Synology Diskstation.

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.

Linux command: grep - Global Regular Expression Print

grep command grep, egrep, fgrep, rgrep - print lines matching a pattern