Configure SSH permissions for users and groups

You can configure Secure Shell (SSH) protocol settings at a granular level to specify permissions for users and groups.

The following example configures SSH to grant permissions to some users and groups and deny permissions to other users and groups:
cem_linux::benchmark: 'cis'
cem_linux::config:
  control_configs:
    ensure_permissions_on_etcsshsshd_config_are_configured:
      allow_users:
        - testuser1
        - the_dude
      allow_groups:
        - testgroup1
        - goonies
      deny_users:
        - testuser2
        - the_emperor
      deny_groups:
        - testgroup2
        - legion_of_doom