First: SSH-based remote login security
Turn command on or off: service sshd Start/stop
Modified file Address/etc/ssh/sshd_config
The main functions are: Prohibit the root user remote login: permitrootlogin=no
Limit Trust Host: addressfamily
Shielded login Banner information: Banner None
Second: storage of syslog.conf files
Before CentOS 6 is stored in:/etc/syslog.conf
After CentOS 6 is stored in:/etc/rsyslog.conf
Third: Login.defs
This is the Linux account management file, storage location in/etc/login.defs. It can operate other account information except root user, such as password effective time, shortest time, password length and password invalidation warning, UID and GID information, umask information, encryption algorithm used and so on, and account Key management related to a lot of content.
Third: Securetty
/etc/securetty "file allows you to specify that the" root "user can log in from that TTY device.
This article is from the Cloud Home blog, so be sure to keep this source http://moodcrazy.blog.51cto.com/721721/1704693
CentOS 6.X Learning Experience