Interview Prep/Linux/SSH & Access Hardening

Why disable SSH password authentication entirely?

BeginnerProductionSSH & Access Hardening
Answer

Every internet-facing SSH port receives constant brute-force and credential-stuffing attempts. With only key (or certificate) authentication, guessing is infeasible, and stolen passwords from other breaches are useless. It also removes the need for complex password policies on servers. Check effective settings with sudo sshd -T | grep -E 'passwordauth|permitroot'.

All Linux questions Roadmap: Linux

More on SSH & Access Hardening