PDA

View Full Version : SSH Error Messages



sakiZ
05-11-2005, 04:16 AM
Recently when I start Knoppix I get a series of ssh related error messages:

WARNING UNPROTECTED KEY FILE!

Permissions 0644 for

/etc/ssh/ssh_host_key
/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_rsa_key

are too open.

Could not load host key.

sshd: No host keys available. Exiting.

Knoppix continues to boot and run. But these error messages persist.

Basically, how do I fix this?

sakiZ

Markus
05-11-2005, 09:14 PM
chmod go-r /etc/ssh/ssh_host_key /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_rsa_key

IIRC the /etc/ssh/ssh_host_key is for protocol 1 which isn't as secure as 2. You can disable it in sshd_config having just these:
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

sakiZ
05-12-2005, 02:28 AM
Thanks,

Worked perfectly. No more error messages.

I also I commented out the ssh_host_key.

sakiZ