Linux Server Hardening
- [ ]1. Encrypt Data Communication for Linux Server - [ ]
All data transmitted over a network is open to monitoring. Encrypt transmitted data whenever possible with password or using keys / certificates.
GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kind of public key directories.
SSH / RSYNC / SFTP for file transfer
SSL whenever it's possible
- Commands and transferred files can be captured by anyone on the same network using a packet sniffer.
- Use instead OpenSSH , SFTP, or FTPS (FTP over SSL)
2. Avoid Using FTP, Telnet, and Rlogin / Rsh Services
3. Minimize Software to Minimize Vulnerability
yum list installed
yum list packageName
or
dpkg --list
dpkg --info packageName
4. One Network Service Per System, VM or Container
Run each exposed service isolated via VM, Docker, LXC..