Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
72
rated 0 times [  72] [ 0]  / answers: 1 / hits: 148288  / 3 Years ago, fri, november 19, 2021, 6:34:10

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?


More From » server

 Answers
4

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

[#25344] Saturday, November 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
soahan

Total Points: 230
Total Questions: 123
Total Answers: 123

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
;