Log in to ESX server with root credentials. Go to the SSH directory using the following command.
Create a banner file with the name as per your wish. If you are able to identify the file that has been created for the security Banner that will be good. I am creating a file named called “arena-banner”
Type the Banner message which you want to display as a security banner message ( warning message or legal protection) before users login to the server.
Once the banner message is ready, Press CTRL-X and type “Y” to save and enter to save the file name as “Arena-banner”
Now, Edit the file ” sshd_config” to include the security banner file “arena-banner”.
nano /etc/ssh/sshd_config and Scroll towards the below section to include the path for banner file.
Remove the # in front of the Banner and include the path for the banner file \etc\ssh\arena-banner and save the file.
Restart the SSH service with the command “service sshd restart ” and Try to login to the server now via SSH.
We are getting the security Banner while login to the server.
Thanks for Reading!!!!