On the internet, for hackers, the first step of intrusion is generally scanning first, which includes the server type, the software and version number that provides services, then, the system or software vulnerabilities are intruded into the system. How can we hide this information? I will share with you today:
By default, when we log on to the Linux system, it will tell us the name, version, kernel version, and server name of the Linux release. To prevent the default information from being leaked, we need to perform the following operations to display only one "login:" prompt.
Delete the/etc/issue and/etc/issue.net files. Enter the user name and password in the/etc/issue file. You can also write other information in this file. /Etc/issue.net is the information displayed for telnet remote login. By default, the content is the same as/etc/issue. However, this is rarely used now!
The following describes some common code meanings in the issue file:
\ D Date of the local end time;
\ L displays the terminal interfaces;
\ M displays the hardware level (i386/i38/ i586/i686 ...);
\ N displays the Network Name of the host;
\ O display domain name;
\ R job system version (equivalent to uname-r)
\ T display the Time of the local end time;
\ S job system name;
The version of the \ v operating system.
After logging on to the system, the information is written in the/etc/motd file, which is empty by default. You can write the information you want to display here.
For example, if we edit and write: hello, welcome to www.2cto.com, the welcome information will be displayed after logon.