Quickzi: How To Add a Welcome Message for SSH Users
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/adam/banner
Add your text:
This is the banner file for Foogazi.com! Welcome!
Write the file and quit:
: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:
:wq
Step 3:
Restart the sshd server.
# /etc/init.d/sshd restart
Step 4:
SSH to your server and test to see if the banner is working:
# ssh adam@foogazi.com
This is the banner file for Foogazi.com! Welcome!
adam@foogazi.com's password:
#
It’s working!
Popularity: 19% [?]
Tagged with: Linux • quickzi • ssh • tips • tricks
Filed under: Linux
Like this post? Subscribe to my RSS feed and get loads more!













login to your terminal
Edit file .bash_profile using:
vi /home/ibrahim/.bash_profile
Save changes and exit
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export PS1=”>> Ibrahim << "
echo
echo -e "Welcome! This is test message"
echo