I'm attempting to get the MOTD to appear on login. Got an old box recently updated and running 18.04.4 LTS. The default MOTD scripts all exist in /etc/update-motd.d/
, are set to +x and run successfully using run-parts
.
sshd_config:
UsePAM yes
PrintMotd no
pam.d/sshd:
session optional pam_motd.so motd=/run/motd.dynamic
session optional pam_motd.so noupdate
Also no sign of a .hushlogin
file for the user.