How to create a banner/welcome-note for SSH server

We can create banner/welcome-note for SSH server simply by adding a text file in ‘/etc/ssh/’ location which contails the content as welcome-note.
Do follow the steps below:
Step 1: Create the text file which has your welcome note under ‘/etc/ssh/’ location.

[root@localhost ~]# cd /etc/ssh/
[root@localhost ssh]# touch welcome.txt
[root@localhost ssh]# echo ":::Hai, Welcome to crybit's SSH:::" > welcome.txt 
[root@localhost ssh]# cat welcome.txt 
:::Hai, Welcome to crybit's SSH:::

Step 2: Add the Banner file details in your SSH configuration file:

ssh conf file : /etc/ssh/sshd_config
[root@localhost ~]# vim /etc/ssh/sshd_config
-----
#Banner none
Banner /etc/ssh/welcome.txt
-----

Step 3: Reatart the SSH daemon:

[root@localhost ~]# service sshd restart
Or
[root@localhost ~]# /etc/init.d/sshd restart

Try to ssh you will get the welcome note 🙂
Example:

[root@localhost ~]# ssh localhost
:::Hai, Welcome to crybit's SSH:::
root@localhost's password:

That’s it..! 🙂 🙂

Related Links:
How to manage SSH permission for custom users under your server
How to disable SSH login as root user – PermitRootLogin
/etc/hosts.allow
/etc/hosts.deny

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

3 Responses

  1. Peter Atkin says:

    Very good simple and clear Im using centos 6.6, worked first time.

  1. February 1, 2014

    […] Links: How to create a banner/welcome-note for SSH server How to disable SSH login as root user – PermitRootLogin /etc/hosts.allow […]

Leave a Reply

Your email address will not be published. Required fields are marked *