10.05.2026

Config: SSH-Hardening

SSH-Konfiguration für sicheren Zugriff auf das Homelab.

SSHD-Konfiguration sshd_config

Port 22022
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
AllowUsers lucas
PermitEmptyPasswords no
UseDNS no
ClientAliveInterval 300
ClientAliveCountMax 2

Tipps

  • Nutze Key-Authentifizierung
  • Vermeide Standard-Ports
  • Probiere Fail2Ban für extra Schutz