HostSlim

How do I secure my new VPS or dedicated server?

A server that is connected to the internet is scanned by bots within minutes. Follow these basic steps right after delivery. Update everything – install…

  • VPS

A server that is connected to the internet is scanned by bots within minutes. Follow these basic steps right after delivery.

  1. Update everything – install all operating system updates and enable automatic security updates.
  2. Use SSH keys and disable password login for root (PermitRootLogin prohibit-password in /etc/ssh/sshd_config).
  3. Enable a firewall (ufw, firewalld or nftables) and only open the ports you actually use.
  4. Install Fail2ban to block repeated failed login attempts.
  5. Use strong, unique passwords for every service and control panel.
  6. Make regular backups and store them outside the server.
  7. 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.

More from the knowledge base

Need something that is not on the list?

Custom builds, private VLANs, BGP sessions, multi-rack deployments. Tell us what you are running and an engineer replies, usually within the hour.