Linux SH remote connection failed Sshd.service start failed

Source: Internet
Author: User
Tags system log

Today accidentally executed the Chmod-r 777/var on this machine's virtual machine

Causes all permissions in the/var directory to be all 777

Where the/VAR/EMPTY/SSHD directory permission must be 744, but was changed to 777, causing the SH remote connection failed

Remote SH connection Condition 1. Turn off the firewall or open SH port 22

  Reference:https://www.cnblogs.com/zwcry/p/9457435.html

Try SH remote connection 2. View/VAR/EMPTY/SSHD Permissions

ll/var/empty/

  Non 744 to 744

  chmod 744-r/var/empty/sshd

try SH remote connection3. See if Sshd.service is started

  Systemctl Status Sshd.service

View status display information, running for success

If it fails, first check the status error message

View System log information again

  Cat/var/log/messages  

  Based on error information groping or Baidu solution

Linux SH remote connection failed Sshd.service start failed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.