Skip to content

Instantly share code, notes, and snippets.

@ciekawy
Created March 2, 2026 14:03
Show Gist options
  • Select an option

  • Save ciekawy/c968846e19ca50e119163667012ca0d0 to your computer and use it in GitHub Desktop.

Select an option

Save ciekawy/c968846e19ca50e119163667012ca0d0 to your computer and use it in GitHub Desktop.
WEB-9: Minimal sshd_config for Windows Server 2022
# 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