You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Windows adds the following lines to sshd_config:
Match Group administrators
AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
These lines make it so admins have to put their SSH keys in %ProgramData%\ssh\administrators_authorized_keys and causes %UserProfile%\.ssh\authorized_keys to be completely ignored. This is intentional behavior according to Microsoft docs, but it causes a lot of confusion and frustration since it's inconsistent with OpenSSH Server on Linux.
Describe the solution you'd like
When the user uses the "Enable OpenSSH Server" button, WU should remove or comment out the lines above at the end of sshd_config.
Describe alternatives you've considered
Update the output in WU's console when enabling OpenSSH Server to mention this behavior. Currently, it just says:
Add your public keys to this file -> C:\\Users\USERNAME\.ssh\authorized_keys
Which doesn't even work for admins.
Additional context
Issue validation
I checked for duplicate issues.
I checked for already existing discussions.
I checked for an already existing pull request addressing the issue.
The text was updated successfully, but these errors were encountered:
RuiNtD
changed the title
Modify sshd_config to match Linux behavior for keys
Modify sshd_config to match Linux when enabling OpenSSH Server
Jan 3, 2025
Is your feature request related to a problem? Please describe
Windows adds the following lines to sshd_config:
These lines make it so admins have to put their SSH keys in
%ProgramData%\ssh\administrators_authorized_keys
and causes%UserProfile%\.ssh\authorized_keys
to be completely ignored. This is intentional behavior according to Microsoft docs, but it causes a lot of confusion and frustration since it's inconsistent with OpenSSH Server on Linux.Describe the solution you'd like
When the user uses the "Enable OpenSSH Server" button, WU should remove or comment out the lines above at the end of
sshd_config
.Describe alternatives you've considered
Update the output in WU's console when enabling OpenSSH Server to mention this behavior. Currently, it just says:
Which doesn't even work for admins.
Additional context
Issue validation
The text was updated successfully, but these errors were encountered: