library-sshd-config

This module provides policy for managing sshd configuration.

Maintainer

Nick Anderson

Module stats

Total Downloads: 442
Updated: Dec 3, 2021

Installation version

Version
Released on Dec 3, 2021

Tags

Installation

                    
cfbs add library-sshd-config
Description
Dependencies
Comments

library-sshd-config

This module provides policy for managing sshd.

lib_sshd_config:global_key_values

Manage individual key values in the global sshd config.

Notes:

  • If there is a Match block the policy will skip configuration and emit a report on stdout indicating a match block was found and configuration was skipped.
  • If the configuration is repaired, the service is restarted.
 bundle agent example_sshd_PermitRootLogin_no
 {
   vars:
       "sshd_config[PermitRootLogin]" string => "no";

   methods:
       "SSHD Config"
         usebundle => lib_sshd_config:global_key_values( "$(this.namespace):$(this.bundle).sshd_config" );
 }
Example Usage

Dependencies

This module has no dependencies

comments powered by Disqus