sudo nano /etc/ssh/sshd_config

Category: Self-Hosting

sudo nano /etc/ssh/sshd_config

Edit the SSH daemon config to harden it — disable root login, change port, require key auth

SSH hardening settings live here: set 'PermitRootLogin no', 'PasswordAuthentication no', and optionally change Port from 22 to reduce automated scanning noise.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.