SSH refusing connection with message “no hostkey alg”

If you try to ssh to your server and getting this error:
no hostkey alg

Try to run this command at your terminal:
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

One thought on “SSH refusing connection with message “no hostkey alg”

Any Comments?