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.
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.
$PSVersionTable | Select-Object PSVersion, PSEdition, OSThe 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.
ssh -V
Get-Command ssh.exe | Select-Object Source, VersionThe 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.
ssh -VThis 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.
