sudo systemctl restart sshd

Category: Self-Hosting

sudo systemctl restart sshd

Restart the SSH daemon to apply config changes — stay in the current session, it won't disconnect

Applies sshd_config changes. You stay connected in your current session; only new connections use the new config.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.