All Products
Document Center

How to restart the sshd service on ECS CentOS 7

Last Updated: Dec 24, 2018

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


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


    • 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.