您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Starting sshd: Missing privilege separation directory: /var/empty/sshd

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

原文地址:http://blog.163.com/ly_89/blog/static/186902299201110211181828/

启动 sshd 服务的时候报了如上的错误,本来开始认为是 sshd 的配置文件的错误,其实不是配置文件的问题。一下是解决的方法:

The SSHD service while restarting, looks for the “/var/empty/sshd/etc” directory which contains a symlink to the ‘localtime’ file. If the file doesn’t exist, it results in a “cannot create symbolic link `/var/empty/sshd/etc’: No such file or directory” error message.

The complete error message is as follows:

-bash-3.2# service sshd restart cp: cannot create symbolic link `/var/empty/sshd/etc’: No such file or directory Starting sshd: Missing privilege separation directory: /var/empty/sshd [FAILED]

The solution is to create the “/var/empty/sshd/etc” directory and then create a symlink for localtime file.

# mkdir /var/empty/sshd/etc
# cd /var/empty/sshd/etc
# ln -s /etc/localtime localtime

Once done, you should be able to restart the sshd service

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

微信扫码登录

1.1439s