Guide6 min
How to Enable SSH on Windows 11 Pro with PowerShell
Sign in to a Windows 11 Pro machine over SSH with a password, then a key, using PowerShell alone.
Server 2022, Server 2025 and Windows 11 Pro ship OpenSSH with different defaults, and PowerShell guides cover each one from setup to key login.
Server 2022, Server 2025 and Windows 11 Pro all carry the Windows port of OpenSSH. What changes between editions is the state sshd starts in: whether the server is installed, and who can sign in before you edit anything.
| Edition | OpenSSH server as shipped | Who can sign in by default |
|---|---|---|
| Windows Server 2022 | Not installed; add the capability | Any account Windows accepts |
| Windows Server 2025 | Installed; service stopped on one tested image, running on another | Administrators and OpenSSH Users |
| Windows 11 Pro (Home untested) | Not installed; add the capability | Any local account |
Four things hold on every edition:
C:\ProgramData\ssh\administrators_authorized_keys. Create it, then
restrict it to Administrators and SYSTEM by removing inherited permissions.
sshd ignores the file, without saying why, if any other account can write to
it. A key in the account’s own
authorized_keys is ignored. Key authentication for an
administrator scripts
it.OpenSSH-Server-In-TCP rule
exists, is enabled and covers the network profile it’s on; if it does, look
for a firewall between the two machines.sshd_config after the Match Group administrators block
applies only to administrators or, for a directive the block doesn’t allow,
stops sshd from starting. Put new directives above it, check the file with
sshd -t, then restart sshd.cmd.exe. That’s the default shell, not a fault.If your Server 2025 machine is held to the DISA STIG, seven of the eleven WN25-SH checks fail on a fresh image, and that article fixes them. The Server articles, read in order, are the OpenSSH on Windows Server series; Windows 11 sits beside it.
6 articles
Guide6 min
Sign in to a Windows 11 Pro machine over SSH with a password, then a key, using PowerShell alone.
Guide14 min
All eleven WN25-SH OpenSSH checks run before and after, and the seven that fail on a fresh Server 2025 image end up printing what their check text expects.
Guideupdated Sep 20266 min
Enabling SSH on Windows Server 2025 lets only Administrators and the OpenSSH Users group sign in. You turn it on with PowerShell, then choose who's in it.
Guideupdated Sep 20265 min
Windows OpenSSH ignores an administrator's authorized_keys. Put the key in administrators_authorized_keys with the right ACL, scripted for a fresh server.
Guideupdated Sep 20265 min
Install the OpenSSH server with PowerShell, start sshd at boot, confirm the port 22 rule, and connect, plus where an administrator's key really goes.
Enable OpenSSH on Windows Server 2022 and 2025, set up key authentication for standard users and administrators, restrict who may sign in, and verify every step.