Ubuntu – take changes in file sshd_config file without server reboot

serverservicessshsshd

I changed the configuration in:

/etc/ssh/sshd_config

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

or:

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