hp-ux启动ssh时报错

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0777 for '/opt/ssh/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: /opt/ssh/etc/ssh_host_rsa_key

Could not load host key: /opt/ssh/etc/ssh_host_rsa_key

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0777 for '/opt/ssh/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: /opt/ssh/etc/ssh_host_dsa_key

Could not load host key: /opt/ssh/etc/ssh_host_dsa_key

Disabling protocol version 2. Could not load host key

sshd: no hostkeys available -- exiting.

解决方案:

cd /opt/ssh/etc

 chmod 600 sshd_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key

chmod 620 moduli

 chmod 644 ssh_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.                                                                                           pub

/opt/ssh/sbin/sshd

猜你喜欢

转载自haomr.iteye.com/blog/1945742