MysticBoy
192.168.50.58: /usr# /usr/sbin/sshd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         
WARNING: UNPROTECTED PRIVATE KEY
FILE!         
@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions
0777 for \'/usr/local//etc/ssh_host_rsa_key\' are too open.
It is recommended
that your private key files are NOT accessible by others.
This private key
will be ignored.
bad permissions: ignore key:
/usr/local//etc/ssh_host_rsa_key
Could not load host key:
/usr/local//etc/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         
WARNING: UNPROTECTED PRIVATE KEY
FILE!         
@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions
0777 for \'/usr/local//etc/ssh_host_dsa_key\' are too open.
It is recommended
that your private key files are NOT accessible by others.
This private key
will be ignored.
bad permissions: ignore key:
/usr/local//etc/ssh_host_dsa_key
Could not load host key:
/usr/local//etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load
host key
sshd: no hostkeys available -- exiting.

进入 /usr/local/etc# 查看有没有下面这些文件, 这些文件是配置, 如果缺少它会提示。 上面的错误是由于下面的这些文件的权限问题导致的。
MiniGUI.cfg           ssh_host_dsa_key      ssh_host_rsa_key      sshd_config
ssh_config            ssh_host_dsa_key.pub  ssh_host_rsa_key.pub
我们将这些文件设置为 600  即可。
192.168.50.58: /usr/local/etc# chmod 600 ssh*
下面你就可以启动了。
/usr/sbin/sshd

这个是权限标准的配置:
-rwxr-xr-x    1 root     root          1554 Mar 21 10:37 ssh_config
-rw-------    1 root     root           668 Mar 21 10:42 ssh_host_dsa_key
-rw-r--r--    1 root     root           609 Mar 21 10:42 ssh_host_dsa_key.pub
-rw-------    1 root     root          1679 Mar 21 10:40 ssh_host_rsa_key
-rw-r--r--    1 root     root           401 Mar 21 10:40 ssh_host_rsa_key.pub
-rwxr-xr-x    1 root     root          3177 Mar 21 10:37 sshd_config
 
 

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2021-04-25
  • 2021-08-17
  • 2022-01-04
  • 2021-12-01
  • 2021-11-23
猜你喜欢
  • 2021-05-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-03
  • 2021-05-28
  • 2021-06-26
相关资源
相似解决方案