Secure operations

SSH on an internet-facing server: a practical baseline

Updated: 13.11.2026 · 5 min read

Secure operations5 min read

Strong SSH operations combine keys, constrained source access, privilege boundaries and a proven recovery path.

Keep an administrative recovery path

Ed25519 keys and disabled password login reduce brute-force exposure. Verify a second session and provider console before changing firewall rules.

  • Verify key-based login.
  • Disable direct root login.
  • Keep an out-of-band recovery option.

Constrain network access

An unusual port is not a security boundary. Filtering SSH to trusted source addresses is much more meaningful than obscuring the service.

  • Allow known administrative sources.
  • Review IPv4 and IPv6.
  • Test before ending your active session.

Observe configuration drift

Review authorization logs, OpenSSH updates and effective sshd settings. Validate syntax before reload and compare the effective policy against your baseline.

  • Run `sshd -t`.
  • Review `sshd -T`.
  • Track OS security updates.

← All articles