Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running Ubuntu x64 server 10.04 on a virtual slice and want to get rid of the lines in bold (and the blank line) below:

$ ssh user@server
Linux jm 2.6.32.12-rscloud #26 SMP Mon May 17 12:35:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/
Last login: Mon Oct 11 04:42:07 2010 from xx.xx.xx.xx
$
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Remove or comment the following line in your /etc/pam.d/sshd:

# Print the message of the day upon successful login.
session    optional     pam_motd.so 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.