openSSH is a popular tool for performing operations using SSH, SCP and SFTP. As of version 1809 of Windows 10 it actually comes bundled. Since the current version of the desktops at TC use version 1709, openSSH requires an installation as it is an optional feature.
Install Steps
Note that there are some pre-install steps that must be taken to avoid an error during the installation.
Pre-Install
- Open regedit.
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU.
- Change the value of the UseWUServer attribute to 0.
- In a command window run the following:
net stop wuauserv && net start wuauserv
Install
To make sure that the OpenSSH features are available for install, run the following in powershell:
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
This should return the following:
Name : OpenSSH.Client~~~~0.0.1.0 State : NotPresent Name : OpenSSH.Server~~~~0.0.1.0 State : NotPresent
Then, simply install the client and/or server features as follows:
# Install the OpenSSH Client Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 # Install the OpenSSH Server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Both should return the following output:
Path : Online : True RestartNeeded : False
- You should now be able to type ssh, sftp, scp or any other openSSH commands into your command window.