Skip to main content

SSH checklist

⚑ One-liner Full Snapshot

SSH via private keys

Change SSH port

  • Prerequisites:
  • Modified sshd_config
  • Search & uncomment Port 22, then change to the desired port.
  • Restart ssh service

Quick setup script

  • Run:

πŸ›‘οΈ SSH Protection Layers β€” Basic to Advanced

Layer 1 β€” Immediate Basics (Do These First) - sshd_config
Layer 2 β€” Key-Based Auth (Eliminates Brute Force)
Layer 3 β€” Firewall (UFW)
Layer 4 β€” Auto-Blocking (fail2ban)
Layer 5 β€” Log Monitoring (Visibility)
Layer 6 β€” Advanced Hardening
Layer 7 β€” Expert Level