oio11: (Default)
[personal profile] oio11

There are two MOTD's shown when I login to my server using SSH



up vote 2 down vote accepted
The MOTD can either be printed by sshd, or by PAM. It's possible that both are doing it.
Check your /etc/ssh/sshd_config for the following:
PrintMotd yes 
If that line isn't present it may be defaulting to yes (although Debian/Ubuntu change the default to no).
Check your PAM configuration in /etc/pam.d/ for the following:
session    optional     pam_motd.so 
Try disabling these one at a time to see what changes.
share|improve this answer
http://serverfault.com/questions/481146/there-are-two-motds-shown-when-i-login-to-my-server-using-ssh

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 28th, 2025 12:30 pm
Powered by Dreamwidth Studios