Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Back to Engineering BlogContainers & Kubernetes
Security Engineering Team·Published 2026-10-26·8 min read·Technical Review Verified

Linux Server Security Hardening Checklist (2026): Ed25519 SSH, UFW, Systemd Sandboxing & Backups

security linux ssh ufw docker
ubuntu
backups

Engineering Summary & Direct Answer

Complete 10-step systems security baseline for hardening Ubuntu 24.04 LTS and Debian 12 cloud servers: Ed25519 SSH keys, default-closed inbound firewalls, Docker DOCKER-USER isolation, systemd cgroups sandboxing, and AES-256-GCM WORM backups.

Instant 60s deploy · Browser SSH & WebRDP included
Deploy Containers (20% Off) Browse 105 Instant AppsVirtual Datacenter Pools ($12–$380/mo)
On this page (7 sections)
  1. What Are the Most Important Steps to Harden a New Linux VPS in 2026?
  2. The 10-Point Production Linux Hardening Matrix
  3. Deep Dive 1: Drop-In sshd Hardening & Why ufw Alone Cannot Stop Docker Port Leaks
  4. Deep Dive 2: Confining Application Daemons with systemd Namespace Sandboxing
  5. Deep Dive 3: Kernel Network sysctl Hardening, auditd Syscall Rules & Automated CVE Patching
  6. 1. Kernel Network & Pointer Hardening (/etc/sysctl.d/99-sau-security.conf)
  7. 2. Watching Identity & Sudo Persistence Paths with auditd + unattended-upgrades
  8. Deep Dive 4: Vault-Backed Secrets, Cloud SIEM Correlation & Immutable Encrypted Backups
  9. Frequently Asked Questions
  10. Why do Servers Are Up instances launch with all public inbound ports closed by default?
  11. Why did PasswordAuthentication no at the bottom of /etc/ssh/sshd_config fail to disable SSH passwords on Ubuntu 24.04?
  12. How do I prevent docker compose from bypassing ufw firewall rules?
  13. What happens if a ufw or sshd typo locks me out of my Linux server?
  14. How do I verify whether a kernel security update requires a reboot on Ubuntu 24.04 or Debian 12?

What Are the Most Important Steps to Harden a New Linux VPS in 2026?

Hardening a production Ubuntu 24.04 LTS or Debian 12 Linux server requires five non-negotiable defenses within your first ten minutes: (1) enforce Ed25519 public-key SSH authentication and disable password/keyboard-interactive logins completely, (2) maintain default-deny inbound firewall rules exposing only required TLS entry points (443/tcp), (3) bind internal databases and Docker container ports strictly to 127.0.0.1 or a private VLAN so Docker NAT rules never bypass ufw, (4) confine application daemons with systemd filesystem/syscall sandboxing plus unattended-upgrades, and (5) automate client-side encrypted off-host backups.

You can generate validated, copy-pasteable hardening configs right in your browser—with zero secrets transmitted to any backend—using our free SSH Keygen & Cloud-Init Generator, UFW Firewall Rule Generator, and Docker Compose Security Linter.


The 10-Point Production Linux Hardening Matrix

Step Defense Layer Exact Configuration / Command Threat Class Eliminated
1 Ed25519 SSH Keys ssh-keygen -t ed25519 -a 100 Weak RSA-1024/DSA keys & brute-force guessing; generate in /tools/ssh-keygen-generator
2 Drop-In sshd Lockdown PasswordAuthentication no & KbdInteractiveAuthentication no in /etc/ssh/sshd_config.d/99-hardening.conf Automated dictionary bots & PAM credential stuffing
3 Default-Deny Host Firewall sudo ufw default deny incoming && sudo ufw allow 443/tcp Lateral port scanning across accidentally bound debug daemons
4 Loopback-Bound Docker Ports ports: ["127.0.0.1:5432:5432"] (validated via /tools/docker-compose-linter) Docker iptables/nftables PREROUTING bypassing ufw to expose Postgres/Redis
5 Ephemeral AI & CI SSH Leases POST /api/v1/instances/{id}/ssh-leases (60–3600s TTL) Stale long-lived CI/CD or AI agent private keys sitting in third-party secrets stores
6 Unattended Kernel/CVE Patching /etc/apt/apt.conf.d/50unattended-upgrades + needrestart Exploited glibc, OpenSSL, openssh-server, and Linux kernel CVEs
7 systemd Unit Sandboxing ProtectSystem=strict, PrivateTmp=true, CapabilityBoundingSet= Web-app RCE escalating to modify /etc/passwd, /usr/bin, or crontab
8 TLS 1.3 & OWASP Headers HSTS, CSP, X-Content-Type-Options: nosniff (grade at /tools/http-headers-checker) TLS downgrade attacks, MIME sniffing, and session-cookie hijacking
9 Private VLAN & WireGuard Mesh OpenStack Neutron 10.0.x.0/24 + WireGuard 172.30.x.0/24 Sniffing or unauthorized internet routing of internal RPC & DB replication
10 Encrypted WORM Off-Site Backups Scheduled AES-256-GCM archives to /cloud-storage or BYO S3/R2 Ransomware encryption, accidental rm -rf, or single-host catastrophic failure

Deep Dive 1: Drop-In sshd Hardening & Why ufw Alone Cannot Stop Docker Port Leaks

Two subtle Linux quirks catch even experienced DevOps engineers off guard on Ubuntu 24.04 LTS:

  1. Ubuntu Cloud-Init Drop-In Precedence (/etc/ssh/sshd_config.d/50-cloud-init.conf): Editing the bottom of /etc/ssh/sshd_config often does nothing on modern Ubuntu cloud images because Include /etc/ssh/sshd_config.d/*.conf appears at the top of sshd_config, and in OpenSSH first-match wins! Always verify effective sshd settings with sudo sshd -T | grep -E 'passwordauthentication|kbdinteractiveauthentication|permitrootlogin' after writing your drop-in file.
  2. The Docker vs. ufw NAT Bypass: When you write ports: ["5432:5432"] in docker-compose.yml, Docker inserts DNAT rules into the kernel nat PREROUTING chain before ufw's INPUT filter chain ever sees the packet—publishing your database to 0.0.0.0:5432 even when sudo ufw status says 5432 is blocked! Always bind internal ports explicitly to 127.0.0.1:5432:5432 (or an internal: true bridge network), and keep your instance's public entry points default-off in /dashboard/network.

Apply a complete, OpenSSH-verified SSH + kernel sysctl lockdown safely (only after verifying your Ed25519 public key is present in ~/.ssh/authorized_keys—and remember that on Servers Are Up, if you ever misconfigure sshd, our hypervisor-level Emergency VNC console in /dashboard/instances lets you log in locally and undo the change in seconds):

# 1. Write high-priority drop-in (00- prefix wins OpenSSH first-match evaluation!)
sudo tee /etc/ssh/sshd_config.d/00-sau-hardening.conf >/dev/null <<'EOF'
PasswordAuthentication no
KbdInteractiveAuthentication no
ChallengeResponseAuthentication no
PubkeyAuthentication yes
PermitEmptyPasswords no
PermitRootLogin prohibit-password
X11Forwarding no
MaxAuthTries 3
LoginGraceTime 20
AllowAgentForwarding no
ClientAliveInterval 300
ClientAliveCountMax 2
EOF

# 2. Validate syntax & confirm effective evaluated settings BEFORE reloading sshd
sudo sshd -t
sudo sshd -T | grep -E '^(passwordauthentication|kbdinteractiveauthentication|permitrootlogin|maxauthtries)'
sudo systemctl reload ssh

Deep Dive 2: Confining Application Daemons with systemd Namespace Sandboxing

Even if a zero-day deserialization or template-injection vulnerability grants an attacker arbitrary command execution inside your Node.js, Python, or Go web worker, systemd service sandboxing can mount the entire operating system read-only, hide /home and /root, strip Linux capabilities, and block setuid privilege escalation—all without container overhead!

Run systemd-analyze security your-app.service on a default unit and it typically scores 9.6 UNSAFE. Adding a drop-in override (/etc/systemd/system/your-app.service.d/hardening.conf) drops exposure to < 2.0 OK:

# /etc/systemd/system/your-app.service.d/hardening.conf
[Service]
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectClock=true
ProtectHostname=true
RestrictSUIDSGID=true
RestrictNamespaces=true
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources @mount @reboot @swap
ReadWritePaths=/var/lib/your-app /var/log/your-app

Reload via sudo systemctl daemon-reload && sudo systemctl restart your-app.service and verify your hardened score with systemd-analyze security your-app.service.


Deep Dive 3: Kernel Network sysctl Hardening, auditd Syscall Rules & Automated CVE Patching

Hardening userspace daemons should always be paired with kernel-level TCP/IP spoofing defenses, immutable privilege-escalation audit trails, and unattended security updates so newly disclosed glibc or OpenSSL vulnerabilities never linger unpatched over a holiday weekend.

1. Kernel Network & Pointer Hardening (/etc/sysctl.d/99-sau-security.conf)

Disable ICMP route redirects (which allow MITM routing table poisoning on shared segments), enforce strict reverse-path source validation (rp_filter), enable TCP SYN cookies against SYN-backlog exhaustion, and hide raw kernel symbol addresses (kptr_restrict = 2) from unprivileged local processes:

# /etc/sysctl.d/99-sau-security.conf — Apply with sudo sysctl --system
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
kernel.kptr_restrict = 2
kernel.dmesg_restrict = 1
kernel.yama.ptrace_scope = 2
fs.protected_hardlinks = 1
fs.protected_symlinks = 1

2. Watching Identity & Sudo Persistence Paths with auditd + unattended-upgrades

Install auditd and unattended-upgrades (sudo apt-get install -y auditd unattended-upgrades apt-listchanges) and watch /etc/sudoers, /etc/ssh/sshd_config.d/, and authorized_keys at the Linux kernel VFS syscall layer so every write or attribute change records the exact auid (original login UID across sudo su) for forensic correlation:

# Monitor privilege & SSH persistence files at the kernel syscall boundary
sudo tee /etc/audit/rules.d/50-sau-identity.rules >/dev/null <<'EOF'
-w /etc/sudoers -p wa -k sudoers_mutation
-w /etc/sudoers.d/ -p wa -k sudoers_mutation
-w /etc/ssh/sshd_config -p wa -k sshd_config_mutation
-w /etc/ssh/sshd_config.d/ -p wa -k sshd_config_mutation
-w /etc/passwd -p wa -k identity_mutation
-w /etc/shadow -p wa -k identity_mutation
EOF
sudo augenrules --load

Deep Dive 4: Vault-Backed Secrets, Cloud SIEM Correlation & Immutable Encrypted Backups

Host-level hardening reaches enterprise maturity when paired with externalized cryptographic keys, real-time intrusion telemetry, and tamper-proof off-host backups:

  • Eliminate Plaintext .env Files: Fetch short-lived database credentials and envelope-wrapped secrets at service startup from SAU Key Vault KMS (/dashboard/key-vault) (/api/v1/vault), and gate internal admin dashboards behind SAU Cloud Identity (/dashboard/identity) ES256 OIDC + clientless ZTNA.
  • Continuous Intrusion Telemetry: Forward journald SSH auth events and file-integrity alerts into SAU Cloud SIEM & SOAR (/dashboard/sentinel) for MITRE ATT&CK correlation and automated containment playbooks.
  • Ransomware-Proof Off-Site Backups: Stream encrypted nightly backups either to your own S3/R2/B2 bucket for free on every Servers Are Up Linux VPS via /dashboard/storage, or into Managed Cloud Storage (/cloud-storage) (5 GiB free developer tier; \$9/mo 250 GiB ZRS; \$29/mo 1 TiB GRS) with client-side AES-256-GCM envelope encryption and time-bound WORM immutability locks so even a compromised server cannot delete historical restore points.

Inspect how we continuously verify 22 platform-wide security, cryptographic, and privacy controls across our own infrastructure in the live Trust Center.


Frequently Asked Questions

Why do Servers Are Up instances launch with all public inbound ports closed by default?

Automated internet-wide scanners probe newly routed IPv4 addresses within minutes, looking for setup wizards, Docker ports, or unconfigured sshd passwords listening on 0.0.0.0. Keeping all public inbound ports closed by default—while giving you instant private-SDN browser WebSSH inside /dashboard/instances—lets you finish hardening your stack before publishing 443/tcp.

Why did PasswordAuthentication no at the bottom of /etc/ssh/sshd_config fail to disable SSH passwords on Ubuntu 24.04?

OpenSSH evaluates configuration directives on a first-match-wins basis, and Ubuntu cloud images place Include /etc/ssh/sshd_config.d/*.conf near the top of sshd_config where 50-cloud-init.conf may set PasswordAuthentication. Writing your settings to /etc/ssh/sshd_config.d/00-sau-hardening.conf and checking sudo sshd -T guarantees your policy wins.

How do I prevent docker compose from bypassing ufw firewall rules?

Never publish internal backing services with ports: ["5432:5432"], which binds 0.0.0.0 in the kernel PREROUTING NAT table ahead of ufw. Bind loopback-only (127.0.0.1:5432:5432) or omit ports: completely on internal: true Docker networks, and audit every Compose file automatically with /tools/docker-compose-linter.

What happens if a ufw or sshd typo locks me out of my Linux server?

On Servers Are Up, you are never locked out by an in-guest firewall or SSH mistake: open /dashboard/instances and switch to the out-of-band hypervisor-level Emergency VNC console tab to sign in on the local virtual TTY and revert the faulty rule immediately.

How do I verify whether a kernel security update requires a reboot on Ubuntu 24.04 or Debian 12?

Install needrestart (sudo apt-get install -y needrestart) alongside unattended-upgrades. After automatic daily apt security runs complete, check test -f /var/run/reboot-required && cat /var/run/reboot-required.pkgs to see whether linux-image or libc6 triggered a pending reboot, and run sudo needrestart -b to identify any long-running daemons still mapping older shared libraries (libssl.so, libcrypto.so) in memory so you can restart them cleanly during your maintenance window.

Isolated OpenStack KVM Containers & SHA-Pinned K3s

Ship Containers Without Per-Seat or Per-Minute Billing Surprises

Managed Docker hosts from $6/mo, 105 single-tenant Instant Apps, and managed K3s clusters from $18/mo ($42/mo for 3-node HA) — plus 69 free 1-click installers on every Linux VPS and 20% off first order (WELCOME20).

Deploy Containers (20% Off) Browse 105 Instant Apps

Explore With AI & Cite This Page

Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.

Ask ChatGPT Ask Perplexity Ask Claude
Share:HN·Reddit·X·LinkedIn
Newer Article

Clientless Browser Remote Desktop & SSH Bastions: WebSocket Protocol Translation, OIDC MFA, and Zero-Port Access

Older Article

24/7 Stateful AI Agent Hosting: LangGraph Checkpointing, Tool Sandboxing, SSE Streams, and VPS Sizing

Related Diagnostic Tools & Engineering Guides

Validate protocols and subnets directly in your browser or continue reading related architecture notes.

Free Browser Tool

Linux, Windows & Game Server Hardening Checklist

Launch utility
Free Browser Tool

CVE Vulnerability & CISA KEV Banner Advisor

Launch utility
Free Browser Tool

SSH Keygen Generator & Cloud-Init YAML Builder

Launch utility

Mastering UFW on Linux: Netfilter Chain Internals, Rate-Limiting SSH & Fixing the Docker UFW Bypass

Configure UFW safely on Ubuntu 24.04 & Debian 12—and understand the exact Netfilter PREROUTING/FORWARD packet path behind why Docker bypasses UFW, plus three production-safe ways to lock it down.

How to Install Docker on Ubuntu 24.04 LTS: Official APT Keyring, daemon.json Tuning & Rootless Security

Install official Docker Engine (docker-ce) and Compose v2 on Ubuntu 24.04 LTS using DEB822 APT keyrings, prevent disk-full outages with daemon.json log rotation, and understand docker group root equivalence vs Rootless Docker.

Browser-Based SSH Terminal & HTML5 Remote Desktop (RDP/VNC) on ServersAreUp: Architecture & Security Evaluation

Systems and security architecture whitepaper on ServersAreUp's zero-install HTML5 browser SSH, Windows Server 2025 RDP, and emergency KVM VNC console—covering xterm.js, Apache Guacamole wire framing, atomic single-use Redis tickets, and default-off SDN traversal.

Mastering ssh-keygen in Linux: Ed25519 Internals, FIDO2 Hardware Keys, and OpenSSH Certificates

Generate hardened Ed25519 and FIDO2 hardware-backed SSH keys with ssh-keygen, tune bcrypt KDF rounds, eliminate authorized_keys sprawl with OpenSSH Certificates, and automate ephemeral key leasing.

On this page

  1. What Are the Most Important Steps to Harden a New Linux VPS in 2026?
  2. The 10-Point Production Linux Hardening Matrix
  3. Deep Dive 1: Drop-In sshd Hardening & Why ufw Alone Cannot Stop Docker Port Leaks
  4. Deep Dive 2: Confining Application Daemons with systemd Namespace Sandboxing
  5. Deep Dive 3: Kernel Network sysctl Hardening, auditd Syscall Rules & Automated CVE Patching
  6. 1. Kernel Network & Pointer Hardening (/etc/sysctl.d/99-sau-security.conf)
  7. 2. Watching Identity & Sudo Persistence Paths with auditd + unattended-upgrades
  8. Deep Dive 4: Vault-Backed Secrets, Cloud SIEM Correlation & Immutable Encrypted Backups
  9. Frequently Asked Questions
  10. Why do Servers Are Up instances launch with all public inbound ports closed by default?
  11. Why did PasswordAuthentication no at the bottom of /etc/ssh/sshd_config fail to disable SSH passwords on Ubuntu 24.04?
  12. How do I prevent docker compose from bypassing ufw firewall rules?
  13. What happens if a ufw or sshd typo locks me out of my Linux server?
  14. How do I verify whether a kernel security update requires a reboot on Ubuntu 24.04 or Debian 12?
Self-Serve Infrastructure

Ship Containers Without Per-Seat or Per-Minute Billing Surprises

Managed Docker hosts from $6/mo, 105 single-tenant Instant Apps, and managed K3s clusters from $18/mo ($42/mo for 3-node HA) — plus 69 free 1-click installers on every Linux VPS and 20% off first order (WELCOME20).

Deploy Containers (20% Off) Browse 105 Instant Apps

Code WELCOME20 · 20% off first order