How to add SSH login banner

FREQUENTLY ASKED QUESTIONS
Q: How to add login banner for SSH server (warning banner) ?


Step1: Create a new banner file under /etc/ssh/ and add your Warning message.

[root@server ~#]vi /etc/ssh/banner           (sample of a warning message below)

*****************WARNING!!!************************
The use of this machine is restricted to authorized users only. All the activities on this SSH Server is logged.
#Now save the new banner file

Step2: Now specify the created banner file to "sshd_config" file
[root@server ~#]vi /etc/ssh/sshd_config
# In the 128th line,  enable the line by removing "#" , and specify the newly created banner file.
Banner /etc/ssh/banner
#( now save the "sshd_config" file)


Step3: Restart the SSH daemon
[root@server ~#]service sshd restart
SSH login banner example

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons