Fix SSH Error no hostkeys available -- exiting

Try the sshd test mode. It may point you to a reason for failure:

sshd -t

if "Unable to load host key"

Only needed to run in terminal:

ssh-keygen -A

Restart SSH

services sshd restart

or

/etc/init.d/ssh restart