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

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

Any Comments?

This site uses Akismet to reduce spam. Learn how your comment data is processed.