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