sudo sshd -t

Category: Self-Hosting

sudo sshd -t

Test sshd_config for syntax errors before restarting SSH — avoids locking yourself out

Tests sshd_config for syntax errors. Run this before restarting sshd — a misconfigured sshd will refuse to start, leaving you unable to SSH in.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.