edit-icon download-icon

How to restart the sshd service on ECS CentOS 7

Last Updated: Jul 31, 2017

Note: ECS Linux CentOS 7 does not use the service operation to restart the sshd service, but uses systemctl instead.


Examples

  1. Identify whether the sshd service has been started using the figure below:

    judgestandard

    • If the service is not started, run the systemctl start sshd.service command to start the service.
  2. Run the systemctl restart sshd.service command to restart the sshd service.

  3. Run the systemctl enable sshd.service command to set the service to auto-start.

If the problem persists, log on to Alibaba Cloud community for free consultation, or contact Alibaba Cloud Marketplace sellers for help.

Thank you! We've received your feedback.