Introduction
Rocky Linux is a downstream, binary-compatible Linux distribution of Red Hat Enterprise Linux (RHEL). It was founded by a co-founder of CentOS Linux after Red Hat announced that CentOS will no longer be developed in its current format. I wrote this article back in May of this year for Vultr to show how to improve the security posture of a Rocky Linux 8 server.
It involves:
- Use an SSH key for remote login authentication
- Creating a new standard user account and grant it sudo privileges
- Disabling SSH access for the root user
- Changing the default SSH port
- Disabling FirewallD zone drifting