Skip to main content

OpenSSH exists but PowerShell cannot see it

Symptom

Get-Command ssh-keygen returns nothing despite OpenSSH being installed.

Resolution

  1. Open a fresh PowerShell session after installing OpenSSH.

  2. Confirm the OpenSSH install path is on $env:PATH:

    $env:PATH -split ';' | Select-String -Pattern 'OpenSSH'
  3. If not on $env:PATH, add it manually:

    $env:PATH += ';C:\Windows\System32\OpenSSH\'
  4. Restart the terminal.