I've looked into pam_motd, and found that it already has this code at
the top of the call:
if (flags PAM_SILENT) {
return retval;
}
So I think this is an openssh issue - openssh ought to be setting
PAM_SILENT in cases where it doesn't plan to show PAM_TEXT_INFO
messages, so that
** Package changed: openssh (Ubuntu) = update-motd (Ubuntu)
--
update-motd executed even in non-interactive sessions
https://bugs.launchpad.net/bugs/587858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.
--