Product SiteDocumentation Site

6.2.4. Restarting the Service

To restart a service, use the systemctl command in the following form:
systemctl restart service_name.service

Example 6.7. Restarting the sshd service

For any changes in the /etc/ssh/sshd_config configuration file to take effect, it is required that you restart the sshd service. You can do so by typing the following at a shell prompt as root:
~]# systemctl restart sshd.service