Chinaunix首页 | 论坛 | 博客
  • 博客访问: 337654
  • 博文数量: 54
  • 博客积分: 497
  • 博客等级: 下士
  • 技术积分: 612
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 20:05
个人简介

行动…Don\'t ever let somebody tell you, you can\'t do something. you got a dream, you gotta protect it. people can\'t do something themselves they wanna tell you you can\'t do it.if you want something. go get it.

文章分类

全部博文(54)

文章存档

2021年(3)

2018年(1)

2017年(18)

2016年(7)

2015年(4)

2013年(1)

2011年(20)

我的朋友

分类: 系统运维

2016-08-23 18:01:37

ssh连接机器时报:
ssh_exchange_identification: Connection closed by remote host.

让现场人员登录后重启SSHD服务报下错误:
Starting sshd: Missing privilege separation directory: /var/empty/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:

service sshd restart 提示: 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

 service sshd restart

阅读(4897) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~