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
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

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 Jun. 1st, 2025 06:56 am
Powered by Dreamwidth Studios