sshd启动失败(急)

来源:百度知道 编辑:UC知道 时间:2024/06/04 18:30:35
Starting sshd:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0772 for '/etc/ssh/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.

执行命令
# cd /etc/ssh
# chmod 0644 *
# chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
# /etc/init.d/sshd start
starting sshd: [OK]
如果不行
出现报错
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
  service sshd restart