New on LowEndTalk? Please Register and read our Community Rules.
Debian: Getting loginmessage two times
Hello,
With my LowEndSpirit Debian 7 VPS I have the problem that I get the message of the day always two times:
Linux vserv03 2.6.32-042stab076.8 #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 13 23:46:50 2014 from x2asdf224e3.dyn.telefonica.de
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
I already checked /etc/motd but it has the correct motd.
Regards,
Comments
I did that to encourage people to open threads on other forums
/me pats self on back.
Seriously though, I will dig in to the template and see what I messed up tomorrow
Hahah was my first thought of course :P I didn't want to annoy you over ticket though.
Thank you
FYI it only occurs on Debian 7, Debian 6 works great.
This usually happens if both PAM and sshd (via "PrintMotd" parameter in sshd_config) are set to show the motd. I usually (try to) remember setting "PrintMotd no" in /etc/ssh/sshd_config.
I seem to have created the impression with a lot of people that if you open a ticket for any LES service I will come to you house and literally bite you
I really don't mind at all I just dont like getting the "Install XYZ for me" or "I cant connect to 192.168.0.124 with my ftp" etc etc, or as I got the day before yesterday, straight in to the main Inception hosting support, marked high priority and also when the extra steps to make it critical that said "Cant SCP to 192.168.X.X"
If you read the (Read in full email) and tried to find the answer yourself or it is a service wide issue then open as many tickets as you want
So I think this is not the issue?
Any suggestions?
I think Debian has two MOTD files. /etc/motd and /etc/motd.tail or something like that.
edit: guess not, but I'm sure I once tried to change MOTD and it printed out what I typed AND something else, that was in some other file (in /etc/ I think)
Check here also:
/etc/pam.d/sshd
I don't find a 2nd motd
This is exactly what my sshd contains
did you check /run/motd.dynamic?
It just contains:
Linux hostname 2.6.32-042stab076.8 #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64
Try to comment those two lines.
That fixed the problem! Thanks