Pcornel
Windows · Remote Access

SSH Client

Cheat sheet · https://pcornel.dk/topic.php?topic=3124

Back to the Topic

Answer

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.

Remember

  • ssh.exe is built into Windows 10 and later.
  • Create keys with ssh-keygen.
  • Host settings go in %USERPROFILE%\.ssh\config.

First checks

  • Test-NetConnection <host> -Port 3389 — RDP port
  • Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections — RDP enabled (0)
  • Test-WSMan <host> — WinRM
  • Get-Service sshd — OpenSSH server

Verify in this order

ssh client → host key check → key auth → session

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3124

Confirmation

Confirm action

Continue?