Skip to content

Conversation

savchuk1985
Copy link

@savchuk1985 savchuk1985 commented Aug 26, 2025

Closes #162.

Adds support for administrators_authorized_keys to SetUserSSHPublicKeysPlugin and UsersPlugin. See https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement#administrative-user for the details.

Please note that the rule from the Win32-OpenSSH configuration only applies to the group that is literally called Administrators. Win32-OpenSSH does not check the system internationalization and does not use security identifiers for group matching.

Therefore, we only check for the presence of a group with the English name used in the Win32-OpenSSH configuration, and do nothing if the group is missing.

@savchuk1985 savchuk1985 changed the title Ssh administrators authorized keys Add support for administrators_authorized_keys to SetUserSSHPublicKeysPlugin and UsersPlugin Aug 26, 2025
@savchuk1985 savchuk1985 force-pushed the ssh-administrators-authorized-keys branch from 9b4485e to 4004584 Compare August 27, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SetUserSSHPublicKeysPlugin incorrect path for Windows Administrator user
1 participant