Step1: Create a new banner file under /etc/ssh/ and add your Warning messag
[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 |