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.