FIX: sshd could not load host file

Trying to run sshd from a live rescue cd. Need to generate the host key files before sshd will run.

# sshd
Could not load host key: /usr/local/etc/ssh_host_key 
Disabling protocol version 1. Could not load host key 

Quick Fix:

# ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_key
# ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key 
# ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key

Leave a Reply

Your email address will not be published. Required fields are marked *