Restart the sshd service on ECS CentOS 7

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.
Labels:

Post a Comment

[blogger][disqus][facebook][spotim]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget