Shared server guidance · Question & answer

How do I install the OpenSSH client using PowerShell?

Use the Windows optional-feature command to install OpenSSH Client on a supported Windows system. This prepares the local computer to make outgoing SSH connections; it does not configure a remote server or grant you access to one.

BeginnerWindows 11 with Microsoft OpenSSH Client; Windows PowerShell 5.1 or PowerShell 7 as labelledLinux VPS and dedicated servers where a remote Linux command is shown
Go to the answer

Before you start

  • A supported Windows edition offering OpenSSH Client as an optional feature.
  • Local administrative rights and an approved Windows feature source.

Instructions

1. Check the current feature state

Open an elevated local PowerShell session. Confirm that the client is actually missing before requesting installation.

Local Windows PowerShell
Get-WindowsCapability -Online -Name 'OpenSSH.Client~~~~0.0.1.0'

Read State. If it already says Installed, proceed to the version check instead.

2. Install the client feature

Install only the named client. Enterprise update policies may control where Windows obtains the feature payload.

Local Windows PowerShell
Add-WindowsCapability -Online -Name 'OpenSSH.Client~~~~0.0.1.0'

This changes the local Windows installation. Observe RestartNeeded and any Windows servicing error.

3. Verify from a fresh terminal

Open a new normal PowerShell or CMD window so that the command search environment is refreshed.

Local Windows PowerShell
ssh -V
Get-Command ssh.exe

The version and executable path confirm that the client can be launched.

Check the result

  • The client optional feature reports Installed.
  • ssh -V runs from a newly opened terminal.

Troubleshooting

Access is denied
The Windows feature installation requires local administrative rights.
Windows cannot download the optional feature
Check the device update-source policy and official feature-installation guidance. Do not substitute an untrusted executable download.

Official references

Use the documentation for your installed version when a flag, service name or platform feature differs.