Security & Backups9 min read•Last updated: •By SkyRain Cloud Team

How to Secure a Dedicated Server: A Step-by-Step Checklist

A new server with a public IP starts receiving automated login attempts within minutes of going online. Bots do not care that you are a small business; they scan every address on the internet looking for weak passwords and old software. Knowing how to secure a dedicated server before you put customer data on it is the single best investment you can make in your new infrastructure.

The short answer: create named users, switch to SSH keys, close every port you do not need, turn on automatic security updates, add brute-force protection, back up off the server, monitor it and lock down out-of-band access. This guide is a step-by-step checklist you can follow on day one, with commands for Ubuntu and Debian and notes for other systems. For deeper hardening after the basics, see our server hardening guide.

Quick answer

To secure a dedicated server: update the OS, create a named admin user with sudo, use SSH keys and disable password and root login, enable a firewall that only allows needed ports, turn on automatic security updates, add Fail2ban, remove unused services, secure IPMI/iLO, encrypt traffic with TLS, set up off-site backups, add monitoring and alerting, and document everything. Then review it monthly.

Before you start

Have these ready: the server's IP and initial credentials, IPMI/iLO login, a password manager for the team, and an SSH key pair on your own computer. If anything goes wrong during setup, the IPMI/iLO console lets you get back in without SSH, so check it works first. Set aside an uninterrupted hour or two: security setup goes wrong mostly when it is rushed between other tasks.

How to secure a dedicated server – SkyRain Cloud bare metal servers in India

How to secure a dedicated server: the 15-step checklist

  1. Update everything. On Ubuntu/Debian: sudo apt update && sudo apt full-upgrade, then reboot if the kernel changed.
  2. Set the hostname and time zone so logs make sense: hostnamectl set-hostname and timedatectl set-timezone Asia/Kolkata.
  3. Create a named admin user and add it to the sudo group: adduser yourname, usermod -aG sudo yourname.
  4. Install your SSH public key for that user (in ~/.ssh/authorized_keys) and test logging in with it.
  5. Disable password and root login over SSH in /etc/ssh/sshd_config: PasswordAuthentication no, PermitRootLogin no, then restart SSH. Keep your current session open until you confirm a new login works.
  6. Enable a firewall, allowing only SSH and the services you run: ufw allow OpenSSH, ufw allow 443/tcp, ufw enable. See firewall setup best practices.
  7. Turn on automatic security updates with unattended-upgrades, and decide when reboots happen.
  8. Install Fail2ban to block IPs that repeatedly fail to log in.
  9. Remove or disable unused services and packages; check listening ports with ss -tulpn.
  10. Secure IPMI/iLO: change default passwords, keep firmware current and restrict access where possible.
  11. Use TLS everywhere: HTTPS for websites and APIs, encrypted connections for databases and mail.
  12. Run applications as unprivileged users, never as root.
  13. Set up off-site backups and test a restore. See automated backups on a dedicated server.
  14. Add monitoring and alerts for uptime, disk space, CPU, memory and failed logins.
  15. Document everything: users, open ports, installed software, backup schedule and recovery steps.

SSH: the front door

SSH is how administrators reach a Linux server, so it is also what attackers target first. Keys are far stronger than passwords, and disabling root login means attackers must guess a username as well. For more options, such as restricting SSH to specific IPs or using a VPN, read SSH security best practices.

Firewall: close what you do not use

The default should be "deny everything inbound, allow only what is needed". Typical open ports for a web server are 22 (SSH, ideally restricted), 80 and 443. Databases, caches and admin panels should not be reachable from the internet; bind them to localhost or a private network.

Threats and the steps that stop them

ThreatChecklist steps that help
Password guessing / brute forceSSH keys, no root login, Fail2ban
Known software vulnerabilitiesUpdates, automatic security patches, removing unused software
Exposed databases or admin panelsFirewall, binding to localhost, VPN
Ransomware or deletionOff-site, versioned backups with restore tests
Undetected compromiseMonitoring, log review, file integrity checks
Hardware-level takeoverSecured IPMI/iLO, firmware updates
Traffic floodsProvider DDoS protection, rate limiting

Updates: the boring step that matters most

Most real-world breaches exploit known vulnerabilities with patches already available. Automatic security updates close that gap. Schedule kernel reboots in a quiet window, and keep an eye on application-level updates too: CMS cores, plugins, language runtimes and containers. Our guide to patch management explains how to make this routine.

Monitoring and logs

  • External uptime checks every minute.
  • Alerts for disk space above 80%, high memory or CPU over long periods.
  • Alerts for repeated failed logins or new admin users.
  • Central storage of logs on another system so they survive if the server itself is compromised.

Securing the applications on top

A perfectly hardened operating system can still be breached through the website or app running on it. Most successful attacks on business servers today come through outdated CMS plugins, weak admin passwords, exposed configuration files or vulnerable custom code. Treat the application layer as part of the checklist:

  • Keep CMS cores, themes, plugins and libraries updated, and remove anything unused.
  • Protect admin areas with two-factor login and, where possible, restrict them to a VPN or known IPs.
  • Store secrets such as database passwords and API keys outside the web root, readable only by the application user.
  • Give each application its own system user and database user with only the permissions it needs.
  • Add rate limiting to login, search and API endpoints.
  • Consider a web application firewall in front of public sites.

If you host sites for clients, apply the same rules to every site, because one neglected install can expose the whole server.

What to do if you suspect a breach

Have a short plan written down before you need it. Disconnect or firewall the affected service rather than deleting evidence; take a snapshot or copy of logs; rotate passwords and keys from a clean machine; check for new users, unexpected cron jobs and unknown processes; restore from a known-good backup if in doubt; and fix the entry point before going live again. Depending on your sector and the data involved, you may also have reporting obligations, so know who to contact.

If you run Windows Server

  • Install updates and enable automatic updates in a maintenance window.
  • Rename or disable the built-in Administrator; use named admin accounts.
  • Never expose RDP directly; use a VPN or Remote Desktop Gateway.
  • Enable the Windows firewall with only required ports open.
  • Use Microsoft Defender or equivalent, and back up off the server.

Going further with standards

Once the basics are in place, security benchmarks such as the CIS Benchmarks give detailed, tested configuration guidance for common operating systems. Apply the parts that fit your risk and workload.

Monthly security review

  1. Confirm automatic updates are running and reboot if needed.
  2. Review user accounts and remove anyone who no longer needs access.
  3. Check open ports against your documentation.
  4. Test restoring one file and one database from backup.
  5. Read the last month's alerts and failed login reports.

Common mistakes

  • Disabling password login before testing key login, then getting locked out.
  • Opening database ports "temporarily" and forgetting them.
  • Leaving IPMI/iLO on default credentials.
  • Keeping backups only on the same server, where ransomware can reach them too.
  • Skipping updates because "the site works fine".

Why businesses choose SkyRain Cloud dedicated servers

SkyRain Cloud gives you secure foundations to build this checklist on:

  • Indian data centers, Indian latency. Intel Xeon dedicated servers are hosted in Mumbai and Delhi, close to customers across India.
  • The whole machine is yours. 100% unshared hardware: no other tenants competing for CPU, memory or disk.
  • DDoS protection included on the network, so a flood aimed at your IP does not have to become your problem alone.
  • Full control. Root or Administrator access plus iLO/IPMI out-of-band management to reboot, reinstall or mount your own ISO.
  • Real support channels. 24/7 support tickets, WhatsApp and a Discord community, plus a public status page.
  • Simple billing. Monthly billing in rupees with UPI, net banking and cards.

Frequently Asked Questions

What is the first thing to do on a new dedicated server?
Update the operating system, create a named admin user with sudo, set up SSH key login and confirm it works, then disable password and root login and enable a firewall.
Is a dedicated server more secure than shared hosting?
It offers better isolation because no other customers share the machine. But security still depends on your configuration, updates and backups.
Do I need antivirus on a Linux server?
Traditional antivirus is less central on Linux, but malware scanning is useful on servers that host uploads or email. Updates, least privilege and monitoring matter more.
How often should I update my server?
Apply security updates automatically and continuously, review all updates weekly, and reboot for kernel updates in a scheduled maintenance window.
What is Fail2ban?
Fail2ban watches log files for repeated failed logins and temporarily blocks the offending IP addresses at the firewall.
Does SkyRain Cloud secure my server for me?
SkyRain Cloud provides DDoS protection on the network, iLO access and single-tenant hardware. The dedicated servers are unmanaged, so OS and application security are configured by you or your administrator.

Conclusion

Learning how to secure a dedicated server is mostly about doing the basics thoroughly on day one: named users, SSH keys, a strict firewall, automatic updates, brute-force protection, secured out-of-band access, off-site backups and monitoring. Then keep them up with a short monthly review.

Start on solid hardware with the plans below, or see the full specs on our dedicated server page.

SkyRain Cloud Dedicated Server Plans

Unshared Intel Xeon bare-metal servers in Mumbai and Delhi data centers with 1 Gbps connectivity. Every plan includes iLO / IPMI out-of-band management, DDoS protection, Full root / Administrator access, Additional IPv4 addresses available and Billed monthly.

PlanCores / ThreadsRAMStorageNetworkPriceGood forBuy
Business
2× Intel Xeon E5-2699 v4 (Mumbai / Delhi)
44 / 88 (2.2 GHz base, 3.6 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹17,999/monthBusiness websites, stores, databases, ERP and many client sitesOrder
Enterprise
2× Intel Xeon Platinum 8269CY (Mumbai / Delhi)
52 / 104 (2.5 GHz base, 3.8 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹19,999/monthVirtualization hosts, large databases, SaaS and container platformsOrder
CustomMore RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team.Clusters, failover pairs, unusual specsAsk

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning