This is what i did and it worked sharing for others.
Create a file called /etc/ssh/sshd-banner.
Paste the customized banner message in it.
For example:
Quote:
"This Machine is for the exclusive use of XYZ organization and Unauthorized access or breach of these terms may result in termination of your authorization and/or criminal penalties."
edit /etc/ssh/sshd_config with following entry
Banner /etc/ssh/sshd-banner
Restart sshd service using.
To validate the changes:
Try to login to the server using putty.
put username and press enter .
You should get banner displaying text under /etc/ssh/sshd-banner file.
For example:
Quote:
login as: root
This site is for the exclusive use of Oracle and its authorized customers and partners. Use of this site by customers and partners is subject to the Terms of Use and Privacy Policy for this site, as well as your contract with Oracle. Use of this site by Oracle employees is subject to company policies, including the Code of Conduct. Unauthorized access or breach of these terms may result in termination of your authorization to use this site and/or civil and criminal penalties.
root@'s password: