CentOS Linux: Start / Stop / Restart SSHD Command

w‮ual.ww‬tturi.com
CentOS Linux: Start / Stop / Restart SSHD Command

To start, stop, or restart the Secure Shell (SSH) daemon (sshd) on a CentOS system, you can use the systemctl command, which is a utility for controlling system services.

To start the sshd service, use the following command:

sudo systemctl start sshd

To stop the sshd service, use the following command:

sudo systemctl stop sshd

To restart the sshd service, use the following command:

sudo systemctl restart sshd

Note that you will need to use sudo to execute these commands, as they require root privileges.

You can also check the status of the sshd service using the systemctl command:

sudo systemctl status sshd

This will display the current status of the sshd service, including whether it is running or stopped.

Created Time:2017-10-16 14:38:40  Author:lautturi