locked
Configuring 'sshd_config' file for OpenSSH. RRS feed

  • Question

  • Hello!

      May someone help me with the DenyUsers, AllowUsers, DenyGroups, and AllowGroups settings?

      I need to configure the following scenario: no local or domain users can access the server via SSH, except those belonging to the domain group called 'sshusers'. For this case, what would be the correct configuration to be added to 'C:\ProgramData\ssh\sshd_config' file? Should be something like that?

    DenyUsers *
    DenyGroups *
    AllowGroups domain\sshusers

    Thanks.


    Doria

    • Moved by jrv Tuesday, June 30, 2020 9:26 PM Off-Topic
    Tuesday, June 30, 2020 7:21 PM

All replies

  • This is not an OpenSSH forum.  Please post this question in the OenSSH forum which is NOT a Microsoft forum (or product).


    \_(ツ)_/

    Tuesday, June 30, 2020 9:26 PM
  • This realy isn't a Powershell problem.

    However, there's no need to use DenyGroups. AllowGroups is all you need.

    https://github.com/MicrosoftDocs/windowsserverdocs/issues/2119


    --- Rich Matheisen MCSE&I, Exchange Ex-MVP (16 years)

    Tuesday, June 30, 2020 9:27 PM
  • This is not an OpenSSH forum.  Please post this question in the OenSSH forum which is NOT a Microsoft forum (or product).


    \_(ツ)_/

    Do not know. Can you point me in the direction?

    Doria

    Wednesday, July 1, 2020 12:39 PM