Skip to content

Commit 584f1c2

Browse files
committed
Explicitly set PrintMotd to no
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]>
1 parent bec815e commit 584f1c2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

roles/edpm_sshd/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ edpm_sshd_server_options:
5656
- 'LC_IDENTIFICATION LC_ALL LANGUAGE'
5757
- 'XMODIFIERS'
5858
Subsystem: 'sftp /usr/libexec/openssh/sftp-server'
59+
PrintMotd: 'no'
5960

6061
# Firewall configuration part
6162
edpm_sshd_configure_firewall: true

roles/edpm_sshd/meta/argument_specs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ argument_specs:
5858
- 'LC_IDENTIFICATION LC_ALL LANGUAGE'
5959
- 'XMODIFIERS'
6060
Subsystem: 'sftp /usr/libexec/openssh/sftp-server'
61+
PrintMotd: 'no'
6162
edpm_sshd_configure_firewall:
6263
type: bool
6364
default: false

0 commit comments

Comments
 (0)