Menu

1 / 3

SSH hardening checklist for production Linux servers (2026)

DEV Community: infosec·errorbudget·about 9 hours ago
#oCDvReir
#devtoinfosec#devto#dev#openssh#exit
Long article (2713 words) — no AI summary yet.
Reading 0:00
15s threshold

This guide is for people who run Linux servers that matter: payment hosts, bastions, database nodes, CI runners. At the end you will have one drop-in sshd_config file, a way to prove each setting is live, and a short checklist you can paste into a change ticket.

Most SSH hardening guides online were written for OpenSSH 7 or 8. Several of their tips are now defaults, a few are now harmful, and the newest controls are missing. OpenSSH 10.0 made post-quantum key exchange the default and removed DSA. OpenSSH 9.8 added built-in penalties for failed logins. This checklist is written against those versions and marks anything that needs an older fallback.

Nothing here changes how SSH is reached from the outside. Network controls (a bastion, a VPN, firewall rules that allow port 22 only from management ranges) matter more than any single option below. Treat this as the layer behind them.

0. Before you touch anything: avoid locking yourself out

SSH changes are the classic way to lose a server.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.