Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

OpenSSH Server

Direct answer

OpenSSH Server is an optional Windows feature (Add-WindowsCapability -Name OpenSSH.Server) providing sshd for secure remote shells and file transfer. Configure it in C:\ProgramData\ssh\sshd_config.

When to use this

Use this when enabling SSH access to Windows.

First 30 seconds

1. Get-WindowsCapability -Online | ? Name -like 'OpenSSH.Server*' — installed.

2. Get-Service sshd running, Automatic.

3. Firewall rule OpenSSH-Server-In-TCP.

4. Admins' keys in C:\ProgramData\ssh\administrators_authorized_keys (ACL!).

5. Test ssh user@host.

Operational verification

sshd service → port 22 → key/password auth → shell (cmd/PowerShell)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse this when enabling SSH access to Windows.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Wrong ACLs on administrators_authorized_keys.
Step 2 Where it fails Narrow the fault

Failure analysis for Remote Access → OpenSSH Server 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 references

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.

observation · 1
Key points
  • OpenSSH Server is an optional Windows capability.
  • Its configuration is in C:\ProgramData\ssh\sshd_config.
  • Administrators' keys go in administrators_authorized_keys.
Key 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
ReferenceImportant terms & boundaries2 sections · depth on demand

Install and configure

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd ; Set-Service sshd -StartupType Automatic
Get-NetFirewallRule -Name *OpenSSH*

Documented example, not captured output. Config: C:\ProgramData\ssh\sshd_config; admin keys in administrators_authorized_keys with strict ACLs.

In depth

OpenSSH Server on Windows (built-in capability):

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd; Set-Service sshd -StartupType Automatic
New-ItemProperty -Path HKLM:\SOFTWARE\OpenSSH -Name DefaultShell -Value 'C:\Program Files\PowerShell\7\pwsh.exe' -PropertyType String -Force
Get-Content $env:ProgramData\ssh\sshd_config

Keys for administrators go in C:\ProgramData\ssh\administrators_authorized_keys (with strict ACLs: SYSTEM and Administrators only), not in the user's .ssh folder. Windows Server 2025 includes sshd installed (disabled) by default.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in Remote Access → OpenSSH Server. 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%
Confirmation

Confirm action

Continue?