How to change SSH greeting under Ubuntu

Original author: The Geek
  • Transfer
Every time I connect to my Ubuntu via SSH, I see the same dull message:
Linux superfast 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007×86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Last login: Mon Aug 13 01:05:46 2007 from ipaddress removed

geek@superfast:~$

Here's how to change it. It will be necessary to edit a couple of files.
The first three paragraphs of this “cart” lie here:
/etc/motd
Build number and disclaimer of warranties - the information is not very useful to me, I just replaced it all.
To disable the message about the last login (which I do not recommend doing), you need to edit this file:
/etc/ssh/sshd_config
Find this option and replace yes with no:
PrintLastLog no
Now when you log in, you will not see this message. For security reasons, I do not recommend doing so.
Here's what my login looks like now:
This is a superfast system. Please max out the cpu accordingly.

Last login: Mon Aug 13 01:24:14 2007 from ipaddress removed
geek@superfast:~$

Linux is cool.

Also popular now: