Use this when connecting from Windows to SSH servers or devices.
SSH Client
The built-in Windows SSH client (ssh.exe) connects to Linux and network devices and Windows OpenSSH servers, supports keys created with ssh-keygen and reads its config from %USERPROFILE%\.ssh\config.
1. ssh -V.
2. ssh -v user@host.
3. Keys in %USERPROFILE%\.ssh; agent: Get-Service ssh-agent.
4. known_hosts warnings verified.
5. Config in ~/.ssh/config.
ssh client → host key check → key auth → session
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Keys without passphrase on shared machines.
Step 2 Where it fails Narrow the fault
Failure analysis for Remote Access → SSH Client follows the Windows chain of components: host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- ssh.exe is built into Windows 10 and later.
- Create keys with ssh-keygen.
- Host settings go in %USERPROFILE%\.ssh\config.
Test-NetConnection <host> -Port 3389— RDP portGet-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections— RDP enabled (0)Test-WSMan <host>— WinRMGet-Service sshd— OpenSSH server
ReferenceImportant terms & boundaries2 sections · depth on demand
Commands
ssh user@host
ssh-keygen -t ed25519
Get-Service ssh-agent | Set-Service -StartupType Automatic
ssh-add $env:USERPROFILE\.ssh\id_ed25519
Documented example, not captured output.
In depth
The OpenSSH client is installed by default on Windows 10 1809+ and Server 2019+:
ssh ops@linux01
ssh -J bastion.corp.example.com ops@10.0.30.15 # jump host
scp .\report.csv ops@linux01:/tmp/
ssh-keygen -t ed25519 -C "alice@corp"
Get-Service ssh-agent | Set-Service -StartupType Automatic; Start-Service ssh-agent; ssh-add $env:USERPROFILE\.ssh\id_ed25519
Config file: %USERPROFILE%\.ssh\config (Host blocks, IdentityFile, ProxyJump), same syntax as on Linux.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Remote Access → SSH Client. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/ · confidence 94%