A server that is connected to the internet is scanned by bots within minutes. Follow these basic steps right after delivery.
- Update everything – install all operating system updates and enable automatic security updates.
- Use SSH keys and disable password login for root (
PermitRootLogin prohibit-passwordin/etc/ssh/sshd_config). - Enable a firewall (ufw, firewalld or nftables) and only open the ports you actually use.
- Install Fail2ban to block repeated failed login attempts.
- Use strong, unique passwords for every service and control panel.
- Make regular backups and store them outside the server.
- Monitor your server for unusual CPU, network or disk usage – this can be a sign of a compromised server.
You are responsible for the security of an unmanaged server. A compromised server that sends spam or attacks other systems may be suspended to protect our network.