您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

ssh解决问题 ,Missing privilege separation directory: /var/run/sshd

qq_34412985 发布时间:2020-06-21 15:20:41 ,浏览量:0

ften, openVZ VPSes that are left behind by their providers are stuck with old kernel versions.

For this occasion, my VPS had 2.6.32-042stab127.2 and after an upgrade, the server’s sshd service wouldn’t start on boot.

Missing privilege separation directory: /var/run/sshd

Digging on the problem, I found out that on 2.6.32-042stab134.7 it was fixed.

To temporarily bypass the problem you can create the directory /var/run/sshd yourself and start the service manually:

  1. # mkdir -p /var/run/sshd

  2. # service sshd start

That will bring the sshd back up.

For a permanent fix, you’ll have to edit /usr/lib/tmpfiles.d/sshd.conf with:

d /run/sshd 0755 root root

Then reboot and you’ll see that the service starts without problems.

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0389s