3

I would like to install the Microsoft-provided OpenSSH client for Windows 10 on machines that do not have internet access.

Typically the instructions for installing the OpenSSH client involve running a command like this in PowerShell:

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

Or alternatively using the DISM tool in a command prompt:

dism /Online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0

However, I have found that these commands only work if the machine has internet access, which makes sense since each command uses the 'Online' switch. The existence of the 'Online' switch makes me think that there might be a way to perform the installation offline. Such an offline installation would probably require files to be downloaded and placed on the machines, which Add-WindowsCapability or DISM.exe knows how to use.

Is it possible to install the OpenSSH client without internet access?

  • Can't you just install it from "Manage optional features" ? – Nihvel Feb 26 '18 at 16:32
  • Don't you have WSUS? – Michael Hampton Feb 26 '18 at 16:34
  • @MichaelHampton I don't have WSUS set up at this point, but I am hoping to get it working in the future. If I did have WSUS set up, would I need to do anything special to use it to install the OpenSSH client? – millinon Feb 26 '18 at 17:53
1

If you are willing to accept a sort of manual and hacky way, it is possible to download their official releases, extract the binaries and add them to your PATH environment variable.

0

The Add-WindowsCapability cmdlet does have a method for installing from a local package file. I've copied the example from the link here. The key is the -Source parameter which should point to the location of the CAB file containing the windows feature to be installed.

Add-WindowsCapability -Online -Name "Msix.PackagingTool.Driver~~~~0.0.1.0" -Source "E:\" -LimitAccess

In order to obtain a CAB file you will need to first get the Windows FOD (Feature-On-Demand) ISO and extract the necessary package from within.

P.S. The -Online flag is used when installing into a live OS, and does not refer to an active internet connection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.