我出现这个问题的原因是:之前将/etc的权限设为777,

这是一个错误的操作!!然后我把权限修改过来(chmod 400 /etc)

重启服务(/bin/systemctl restart ssh.service)就行了

相关文章: