Shared server guidance · Question & answer

How do I check my PowerShell and SSH client versions?

PowerShell and OpenSSH are separate tools with separate versions. Check both before using features such as SSH-based PowerShell remoting. The versions on your local computer do not identify the software installed on the server.

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

Instructions

1. Inspect the local PowerShell session

Run this in PowerShell, not CMD. The edition and version help distinguish Windows PowerShell from newer PowerShell releases.

Local Windows PowerShell
$PSVersionTable | Select-Object PSVersion, PSEdition, OS

The output describes the current PowerShell process. Some properties can be absent in older Windows PowerShell.

2. Inspect the SSH program selected by Windows

Check both the version and path if multiple SSH clients are installed.

Local Windows PowerShell
ssh -V
Get-Command ssh.exe | Select-Object Source, Version

The executable version can differ from the Windows optional-feature version shown elsewhere.

3. Check remote tools separately

For an existing Linux SSH session, inspect the remote client only if the task requires outgoing SSH from that server.

Remote Linux shell
ssh -V

This reports the SSH client on Linux, not necessarily the running SSH server package version.

Check the result

  • The operating environment required by the guide matches your local shell.
  • The SSH executable path is the one you intend to use.

Troubleshooting

A guide requires a parameter that is missing
Read that command version’s documentation or choose an equivalent supported workflow.
Local and remote versions differ
That is normal. Apply the relevant instructions to each computer independently.

Official references

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