Contents
RakusoitR Practical cloud hosting advice for small businesses

Home › Articles

Server Security Basics Every Small Business Should Configure

By Daniel Mercer · Published · 5 min read

Padlock and firewall icons representing cloud server security basics configuration
Padlock and firewall icons representing cloud server security basics configuration · Foto: geralt / Pixabay

Most small businesses do not get breached by sophisticated attackers. They get hit by an exposed database port, an unpatched package, or a former employee's SSH key that was never revoked. The good news is that the highest-value security work is also the cheapest: a few hours of configuration and a monthly habit of reviewing what is running on your server.

This guide is organized by priority, not by product. Configure the first three items before your next deploy and you close the majority of realistic attack paths. Everything below assumes a standard Linux cloud instance, but the logic transfers to managed platforms and Windows servers with minor adjustments.

Start With the Firewall, Not the Antivirus

A default cloud server usually has every port reachable from the internet. That is the single biggest risk most small teams carry. Configure the host firewall first so that only the ports you actually serve are public: typically 80 and 443 for web traffic, and 22 for SSH restricted to your office IP or a VPN endpoint. Database ports like 3306 or 5432 should never be open to the world.

Use both layers available to you. Cloud providers offer security groups at the network edge, and the operating system has its own firewall such as ufw or firewalld. Keep them aligned, or you will spend an evening debugging why an app cannot reach a service that looks open. Write the rules down in your runbook; the next person to touch the server will thank you.

Audit what is actually listening with a quick port scan from outside your network, not from inside the server. The two views differ more often than people expect, especially when Docker publishes ports by rewriting iptables rules without touching your ufw configuration.

  • Deny all inbound by default, allow only 80, 443 and restricted SSH
  • Bind databases and admin panels to localhost or a private subnet
  • Scan from an external host after every infrastructure change
  • Document every open port and who owns the service behind it

Patch Cadence: Boring, Predictable, Effective

Unpatched software remains the most common entry point for opportunistic attacks. You do not need a vulnerability management program; you need a schedule. For most small businesses, weekly unattended security updates for the OS plus a monthly review of application dependencies is enough. Critical remote-code-execution patches should go out within 24 to 72 hours of publication.

The hard part is not applying patches, it is knowing what you run. Keep a simple inventory: OS version, web server, runtime, database, CMS and any plugins. A spreadsheet is fine. When a widely reported vulnerability lands, you can check that list in ten minutes instead of rebuilding your mental model of the stack under pressure.

Test in staging when you can, but do not let a missing staging environment become an excuse to skip patching for months. For small sites, a snapshot before the update plus a tested rollback path is an acceptable substitute.

  • Enable unattended security updates for the OS
  • Review application and CMS dependencies monthly
  • Patch critical remote-code-execution flaws within 24-72 hours
  • Take a snapshot before major version upgrades

Access: Keys, Not Passwords, and Fewer People

Disable password authentication for SSH and require key pairs. Passwords on an internet-facing SSH port are brute-forced continuously; key-only access removes that entire category of noise. Better still, put SSH behind a VPN or a bastion host so the port is not public at all.

Give each person their own key and their own account. Shared logins make audit trails worthless and make offboarding unreliable. When someone leaves, you revoke one key rather than rotating a password everyone knows. Enforce sudo for administrative actions so the auth log tells a coherent story.

Cloud control panels deserve the same discipline. Use separate IAM users instead of a shared root account, enable multi-factor authentication on every account that can delete a server or read a backup, and review the user list quarterly. Most account compromises start with credentials that were never meant to be shared.

  • Key-only SSH with per-person accounts
  • Multi-factor authentication on the provider console and DNS
  • Quarterly access review, immediate revocation on departure
  • Restrict SSH to known IPs or a VPN
Security controls by priority, effort and typical cost
ControlPrioritySetup effortOngoing effortTypical cost
Firewall and port restrictionCritical1-2 hoursReview on changeFree
OS and dependency patchingCritical1-2 hours2-4 hours/monthFree
SSH keys and MFACritical1 hourQuarterly reviewFree
Offsite backups with restore testHigh1-2 hours1 hour/quarter$5-50/month
Logging and alertingHigh2-4 hours1 hour/month$0-30/month
External uptime monitoringMedium30 minutesMinimal$0-20/month

Backups You Have Actually Restored

Ransomware and accidental deletion are as likely to end your week as an intrusion. Keep automated daily backups with a retention window of at least 7 to 30 days, and store at least one copy outside the account or region where the server runs so a compromised credential cannot delete both.

An untested backup is a hope, not a control. Restore one into a scratch environment each quarter and time how long it takes. For a small database, expect a restore to take anywhere from 15 minutes to a couple of hours depending on size and tooling; knowing that number shapes how you write your incident plan.

Backups also protect against failed patches. If an update breaks the application, rolling back to last night's snapshot is a five-minute decision instead of an all-night debugging session.

  • Daily automated backups with 7-30 day retention
  • One copy in a separate account or region
  • Quarterly restore test with a timed result
  • Encrypt backups at rest and restrict who can read them

Logging and Alerts Without the Noise

You do not need a full observability stack on day one. You need to know when something changes. Ship authentication logs and web server error logs to a central place, and set alerts for a small number of high-signal events: repeated failed SSH logins, a new user account, a service restarting unexpectedly, disk usage above 85 percent.

Alert fatigue kills monitoring faster than missing tools. Start with five alerts, tune them for a month, and delete anything that fires without requiring action. A page that nobody acts on trains the team to ignore the channel.

Pair alerts with a simple uptime check from outside your infrastructure. It catches the cases your server-side monitoring cannot: expired certificates, DNS mistakes and provider-level outages.

  • Alert on failed SSH bursts and new accounts
  • Watch disk, memory and certificate expiry
  • External uptime check independent of your server
  • Review and prune alerts monthly

What It Costs and Where It Fits

The configuration above is mostly time rather than money. Expect a focused half day to a full day for initial setup on a single server, then roughly two to four hours a month for patching, access reviews and alert tuning. A small team can absorb that; a solo founder should calendar it.

Paid tooling is optional at this scale. A backup service typically runs a few dollars to a few tens of dollars per month per server. A basic monitoring service is often in the same range. The larger investment is the discipline of a monthly review, which is also where the choice between managed and unmanaged hosting changes how much of this work lands on your team.

If you are still sizing the environment itself, the trade-offs in choosing a cloud hosting plan for a small business interact directly with security: private networking, snapshot policies and IAM controls are features you should check before you compare prices.

  • Initial hardening: half a day to one day
  • Ongoing: 2-4 hours per month
  • Backup and monitoring tools: low tens of dollars monthly
  • Managed hosting shifts patch and OS work to the provider
20Firewall20Patching setup15Access and MFA25Backups20Logging
Share of initial hardening time by control area (percent of setup hours)
  • Close every port you do not serve, and verify from outside the server
  • Weekly OS updates plus a monthly dependency review prevent most opportunistic attacks
  • Key-only SSH with per-person accounts makes offboarding a one-minute task
  • Test a restore quarterly; an untested backup is not a control
Daniel Mercer · Editor
Daniel has spent years writing plain-language guides about web hosting and cloud infrastructure for small business owners. He focuses on turning technical plan details into practical budgeting and buying advice. He reviews every article on Rakusoit for clarity and accuracy before publication.

Related articles

↑