Ubuntu – take changes in file sshd_config file without server reboot


I changed the configuration in:


but the changes were only applied after rebooting the server.
How to apply changes without a reboot?

Best Answer

Simply restart the sshd service:

sudo service sshd restart


sudo /etc/init.d/sshd restart

Just in case you are restarting remotely, the configuration should be checked first to make sure it will not fail to start:

sudo sshd -t
Related Question