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

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'