Follow these steps to configure server security:
- When a Linux server is created, the first user created by default is always the root user. This root user should be used for initial configuration only.
- Once initial configuration is done, this root user should be disabled via SSH. This will make it difficult for any hacker to gain access to your Linux machine.
- Further, a secondary user should be created to log in and administer the machine. This user can be allowed sudo permissions if administrative actions need to be performed.