Your provisioning email just arrived: an IP address, root credentials, and a bare operating system. What you do in the next 24 hours determines whether this machine becomes a hardened, well-documented production asset or an unpatched liability. With the dedicated hosting market passing roughly $24 billion in 2026 and automated attacks scanning new IP ranges within minutes of allocation, the setup window matters more than ever.

Hour 1: Lock Down Access

Before installing anything, secure the front door:

  • Log in once with the provided password, then immediately add your SSH public key to ~/.ssh/authorized_keys.
  • Create a non-root sudo user and confirm you can log in with it.
  • Edit /etc/ssh/sshd_config: set PermitRootLogin no and PasswordAuthentication no, then restart the SSH daemon.
  • Optionally move SSH to a non-standard port to cut log noise โ€” it is not real security, but it reduces automated scans dramatically.

Hours 2โ€“4: Patch and Configure the Base System

Run a full update (apt update && apt upgrade or dnf upgrade) and reboot so you are on the latest kernel. Then set the timezone to UTC, configure NTP time sync, set a descriptive hostname, and enable unattended security updates. Verify your provider actually gave you the hardware you ordered: check CPU with lscpu, RAM with free -h, and disks with lsblk and smartctl.

Hours 4โ€“8: Firewall and Fail2ban

Enable a default-deny firewall before exposing any service. With nftables or ufw, allow only SSH and the ports your application needs. Install fail2ban to ban repeated authentication failures automatically. If your server ships with IPMI or a management interface, confirm it is restricted to a private network โ€” exposed IPMI is one of the most common dedicated server compromises.

Hours 8โ€“16: Monitoring, Backups and Baselines

A server without monitoring fails silently. Install node_exporter or your preferred agent, wire it to an external monitoring service, and add an uptime check from outside the network. Configure your first backup job to off-server storage and โ€” critically โ€” test a restore. Finally, capture performance baselines with a quick disk and network benchmark so future troubleshooting has a reference point.

Hours 16โ€“24: Documentation and Verification

ItemVerify
SSHKey-only login, root disabled
FirewallDefault deny, minimal open ports
BackupsOff-server copy, restore tested
MonitoringExternal uptime + resource alerts

Write down every decision โ€” ports, users, installed packages โ€” in a runbook. Six months from now, that document is worth more than any single configuration change.

Frequently Asked Questions

Should I reinstall the OS the provider shipped?

Many teams do a clean reinstall from the provider control panel so they know exactly what is on disk. It takes 15โ€“30 minutes and removes any doubt about pre-installed agents or images.

Do I need a control panel like cPanel?

Only if you host many websites for separate users. For a single application, a plain OS with your own stack is leaner, cheaper and easier to secure.

When should traffic go live?

Only after SSH hardening, firewall, monitoring and a tested backup are all in place โ€” typically at the end of day one.

Starting fresh? Explore our Linux dedicated servers or ask our team for a managed setup.