I. Banner information related documents
/etc/issue: This file information is used for local login when the prompt information is saved in this document, by modifying the contents of this document can modify the local login prompt information. Modification and entry into force.
/etc/issue.net: This file is used to save the message before landing via SSH. Modify this file to modify the prompt before SSH login. It is also necessary to change the "#banner No" content to "banner/etc/issue.net" in the/etc/ssh/sshd_config file, and then systemctl restart Sshd.services reboot to take effect.
/ETC/MOTD: This file is used to save the prompt message after successful SSH login. Modification and entry into force.
Second, set up banner information function
1, can hide the server is really information.
2, you can set some warning information.
Third, banner other information description
General settings are only: Kernel \ r on an \m
These \ r \m are representative meanings:
\d the date of the local end time
\l shows the interface of the first terminal;
\m Display hardware level (i386/i486/i586/i686 ...)
\ n Displays the network name of the host
\o Show Domain name
\ r version of the operating system (similar to UNAME-R)
\ t Displays the time of the local end time
\s name of the operating system
\v version of the operating system
For example, I would like to set the time on the local side
We can open/etc/issue and write date: \d
CentOS 7.3 Banner Information settings