jump to navigation

How To Add a Welcome Message for SSH Users on Centos 5.5 November 5, 2010

Posted by Tournas Dimitrios in Linux.
trackback

Here is a quick tip on how to add a welcome message for your SSH users.

If you want users to see a banner welcome message when connecting to your SSH server, you need to turn on the banner configuration of SSHd and then create a banner file.

  • Step 1:

Create a banner file that contains text you want people to see when connecting to your SSH server.

Create and open the banner file:  # vi /home/userdir/.sshbanertext

Add your text:  This is the banner file for dimitrios ! Welcome!

Write the file and quit:     esc   –>>  :wq

  • Step 2:

Edit sshd_config to set a default banner path. # vi /etc/ssh/sshd_config then add the following to the config file: Banner /path/to/banner . Write the file and quit: esc –> :wq

  • Step 3:

Restart the sshd server. # /etc/init.d/sshd restart or service sshd restart

  • Step 4:

SSH to your server and test to see if the banner is working:

# ssh root@192.168.1.44 or ssh root@www.someaddress.com

This is the banner file for dimitrios! Welcome!

root@192.168.1.5’s password:

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s