Warning Message on ssh terminal login - Banner

by rajesh 2009-11-07 17:54:08

We can set a warning or a company message to be displayed when ever users login to their ssh account.

For this we have to create file and save our message in that file.

Example:

#echo "This is a warning message" > /root/warning-message


Now point edit the ssh config (it may be in /etc/ssh/sshd_config) and uncomment the line with Banner in it and change it to point the waring message file

Banner /root/warning-message


save the file and restart ssh.

Tagged in:

2239
like
0
dislike
0
mail
flag

You must LOGIN to add comments