Created
March 2, 2026 14:03
-
-
Save ciekawy/c968846e19ca50e119163667012ca0d0 to your computer and use it in GitHub Desktop.
WEB-9: Minimal sshd_config for Windows Server 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Minimal sshd_config for Windows Server 2022 | |
| # WEB-9 - SSH setup | |
| # Authentication | |
| PubkeyAuthentication yes | |
| PasswordAuthentication no | |
| PermitRootLogin no | |
| # Authorized keys file for administrators | |
| Match Group administrators | |
| AuthorizedKeysFile C:/ProgramData/ssh/administrators_authorized_keys | |
| # PowerShell subsystem | |
| Subsystem powershell C:/Progra~1/PowerShell/7/pwsh.exe -sshs -NoLogo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment