Sunday, December 18, 2011

Create welcome message for SSH login

1.Creating a Welcome message for SSH logins
If  you  want to change or create a new login message any time if someone logs into SSH. Please follow the instructions

First off login to our server as root. Then type in the following:
vim /etc/motd

2. Option. If you would like any user who connects to your SSH service to see a specific message, you can create a custom SSH banner. Simply create a text file (in my example in /etc/ssh-banner.txt) and put any kind of text message in it; for example:
*****************************************************************
*This is a private SSH service. *
*****************************************************************

When done editing, save the file. In the sshd_conf file, find a line that says:
#Banner /etc/issue.net

No comments: