SSH (Secure Shell) is a protocol for creating a secure connection between two computers. The secure SSH connection provides authentication and encryption. On the server, it is possible to configure a SSH logon banner (or welcome banner) with the use of the banner directive in /etc/ssh/sshd_config file.
The banner directive is only available for ssh protocol version 2 and by default there are no banner configured.
Configuration
Create a banner file. (e.g. /etc/banner) using vi editor. # vi /etc/banner ********************************** ******** WELCOME TO zenlab ******* **********************************
Configure the ssh configuration file/etc/ssh/sshd_config file and add the line Banner /etc/banner to it.
# vi /etc/ssh/sshd_config Banner /etc/banner
Restart sshd daemon for the changes to take effect
# service sshd restart
Example
If we are accessing server using ssh , message will appear as follows:
[root@mail ~]# ssh 10.30.32.206 ********************************** *********WELCOME TO zenlab ******** ********************************** root@10.30.32.206's password: *********
Image: Downloaded on Flickr