Securing a new VPS server
Updated on 08/10/2026
- Update the system (
apt update && apt upgradeordnf update). - Create a user with
sudorights and use SSH keys. - Disable root password login in
/etc/ssh/sshd_config. - Turn on a firewall (ufw, firewalld), opening only the ports you need.
- Install Fail2ban to block repeated login attempts.
Was this article helpful?
Contact support
