Security Basics
- Change SSH Port: Edit
/etc/ssh/sshd_configto use a non-standard port. - Disable Root Login: Create a sudo user and disable direct root login.
- Firewall: Enable
ufw(Ubuntu) orfirewalld(CentOS) and only allow necessary ports.
Essential security steps for your bare metal server.
/etc/ssh/sshd_config to use a non-standard port.ufw (Ubuntu) or firewalld (CentOS) and only allow necessary ports.