Here’s a quick tutorial for sysadmins who want to customize their welcome banner in Ubuntu.
Connect to your box:
ssh -l login host -p port
sudo up to a super user
sudo su -
and change to the /etc directory
use vi, pico or nano to edit the following to files: motd.tail and motd
nano -w motd.tail
Change the banner to whatever you want.
Save the documents, and this should now be live.
Exit out of the current account and log out of the session
Test it by ssh-ing back into the box.
The .tail edit is required to it doesn’t reset after reboot as the .tail overwrites the motd file.
Have fun, be creative!