Skip to content

Commit

Permalink
Explicitly set PrintMotd to no
Browse files Browse the repository at this point in the history
This change explicitly sets PrintMotd to no in the sshd_config.
PrintMotd defaults to yes, and we're now using PAM to manage our motd
requirements in RHEL9:

https://www.man7.org/linux/man-pages/man8/pam_motd.8.html
https://www.man7.org/linux/man-pages/man5/sshd_config.5.html
Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Dec 5, 2024
1 parent bec815e commit 584f1c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/edpm_sshd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ edpm_sshd_server_options:
- 'LC_IDENTIFICATION LC_ALL LANGUAGE'
- 'XMODIFIERS'
Subsystem: 'sftp /usr/libexec/openssh/sftp-server'
PrintMotd: 'no'

# Firewall configuration part
edpm_sshd_configure_firewall: true
Expand Down
1 change: 1 addition & 0 deletions roles/edpm_sshd/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ argument_specs:
- 'LC_IDENTIFICATION LC_ALL LANGUAGE'
- 'XMODIFIERS'
Subsystem: 'sftp /usr/libexec/openssh/sftp-server'
PrintMotd: 'no'
edpm_sshd_configure_firewall:
type: bool
default: false
Expand Down

0 comments on commit 584f1c2

Please sign in to comment.