Set SSH Login Message or User Notice
By Shay Anderson on July 2013
You can set a custom login message/banner or user notice/warning on your server by following these instructions.
First, create the login message (banner): # nano /etc/ssh/bannerThen add the message you want to be displayed on SSH login, for example: ***************************************************************************
NOTICE TO USERS
This computer system is the private property and is NOT for public use.
It is for authorized use only. Log off immediately if you are not an
allowed authorized user of this system.
****************************************************************************Next, set the banner path in the /etc/ssh/sshd_config file: Banner /etc/ssh/bannerFinally, restart the SSH service, on my Ubuntu server I do with command: # service ssh restartNext time a login is completed the banner should be displayed