How to Update SSH & MOTD Banner on CentOS 6 Rumi, December 7, 2015December 7, 2015 For legal reasons, Some people need to display a warning banner on their Linux machine before login so that a person requires to acknowledge the contents of the banner before entering the password. To do this, edit a/etc/issue.net file and fill it with the desired context. Edit the /etc/issue.net file: sudo nano /etc/issue.net Here is mine banner as a sample, you can add your’s here: ######################################################### # Authorized access only! # # Disconnect IMMEDIATELY if you are not an authorized user!!! # # All actions Will be monitored and recorded # ############################################################### Open /etc/ssh/sshd_config file: sudo nano /etc/ssh/sshd_config Locate the line, that contains Banner and uncomment it as given below: Banner /etc/issue.net Restart sshd: sudo service sshd restart To configure the MOTD, we need to edit /etc/motd file: sudo nano /etc/motd Here is mine custom MOTD that I want to show to the users after login: ################################ # If you are not authorized to access# # or use this system, disconnect now # ###################################### Now, If we try to login, it will show us the warning banner as well as MOTD after login , that we just configured: Hope this will help you! Src: https://rbgeek.wordpress.com/2012/08/08/how-to-update-ssh-motd-banner-in-centos-6/ Related Administrations Configurations (Linux) CentOSPuttySSHSSHD
Vesta- How to set up master-slave DNS cluster January 28, 2019January 28, 2019 If you are looking for the options to avoid any DNS-related downtime or the way to manage dns across all server you have, you might consider to set up dns cluster. Create user dns-cluster on a server which will be used as dns slave On the second server (slave) with… Read More
Hide the Apache Web Server Version number with ServerSignature and ServerTokens directives March 7, 2013 You can easily hide Apche (httpd) version number and other information. There are two config directives that controls Apache version. The ServerSignature directive adds a line containing the Apache HTTP Server server version and the ServerName to any server-generated documents, such as error messages sent back to clients. ServerSignature is… Read More
Moving MySQL/Windows to same version of MySQL/Linux August 5, 2017 Moving MySQL/Windows to same version of MySQL/Linux. You can mysqldump all the databases as follows: C:\> mysqldump -uroot -p –routines –triggers –flush-privileges –all-databases > MySQLData.sql Move MySQLData.sql to Linux box and run the reload mysql -uroot -p < MySQLData.sql Related Read More