OpenSSH: validate config before reload
A bad sshd_config is painful, so sshd -t is mandatory.
sudo sshd -t
sudo systemctl reload ssh
journalctl -u ssh --since "10 min ago" --no-pager
Verify the result
Reload only after a clean sshd -t.
A bad sshd_config is painful, so sshd -t is mandatory.
sudo sshd -t
sudo systemctl reload ssh
journalctl -u ssh --since "10 min ago" --no-pager
Reload only after a clean sshd -t.