CentOS7上的SSH无法启动,报告/var/empty/sshd must be owned by root and not group or world-writable
一、查找问题的起因
#检查包是否正常 rpm -V openssh-server #检查sshd配置是否正确 sudo sshd -T
二、根据显示问题找到解决办法
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable. [FAILED]
解决:
chown -R root.root /var/empty/sshd chmod 744 /var/empty/sshd