Skip to content

In Microsoft.OpenSSH.SSHD/sshd_config allowgroups is not processed correctly #1508

@Sivees

Description

@Sivees

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

When sshd_conf config on windows is:
AllowGroups administrators "openssh users"
export with command "dsc resource export -r Microsoft.OpenSSH.SSHD/sshd_config" is:

    allowgroups:
    - administrators
    - openssh
    - users

Steps to reproduce

On windows enable sshd service and check AllowGroups parameter in sshd_conf, it should be:
AllowGroups administrators "openssh users"
Export sshd configuration with command:
dsc resource export -r Microsoft.OpenSSH.SSHD/sshd_config

Expected behavior

    allowgroups:
    - administrators
    - openssh users

Actual behavior

    allowgroups:
    - administrators
    - openssh
    - users

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.2.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions