VPS security — first steps

Tips for protecting a new server from attacks.

VPS and VDS ~1 min read Updated: 30.09.2026
  1. Update the system and enable automatic security updates.
  2. Create a separate user and give it sudo rights.
  3. Set up SSH key login, then disable password login and direct root login.
  4. Enable a firewall (ufw on Ubuntu) and open only the ports you need (22, 80, 443).
  5. Install fail2ban — it blocks repeated failed login attempts.
  6. Set up a regular backup schedule.
On a VPS, managing and securing the system is the customer’s responsibility. If you need a managed server, contact us.
Problem not solved?

Our team is here 24/7 — open a ticket or write to the AI Advisor.