sshd[ ]: fatal: no hostkey alg [preauth]

Встречаются такие ошибки при работе с sshd:

Oct 27 14:00:00 7-srv-h sshd[4614]: fatal: no hostkey alg [preauth]
Oct 27 14:00:02 7-srv-h sshd[4616]: fatal: no hostkey alg [preauth]
Oct 27 14:00:03 7-srv-h sshd[4618]: fatal: no hostkey alg [preauth]
Oct 27 14:00:04 7-srv-h sshd[4620]: fatal: no hostkey alg [preauth]
Oct 27 14:00:05 7-srv-h sshd[4622]: fatal: no hostkey alg [preauth]
Oct 27 14:00:06 7-srv-h sshd[4624]: fatal: no hostkey alg [preauth]
Oct 27 14:00:43 7-srv-h sshd[4630]: fatal: no hostkey alg [preauth]
Oct 27 14:00:44 7-srv-h sshd[4632]: fatal: no hostkey alg [preauth]

или такие:

Oct 27 13:46:53 7-srv-h sshd: Could not load host key: /etc/ssh/ssh_host_dsa_key
Oct 27 13:48:35 7-srv-h sshd[4433]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Oct 27 13:48:35 7-srv-h sshd[4433]: fatal: no hostkey alg [preauth]
Oct 27 13:48:38 7-srv-h sshd[4435]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Oct 27 13:48:38 7-srv-h sshd[4435]: fatal: no hostkey alg [preauth]
Oct 27 13:49:43 7-srv-h sshd[4446]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Oct 27 13:49:43 7-srv-h sshd[4446]: fatal: no hostkey alg [preauth]
Oct 27 13:49:51 7-srv-h sshd[4448]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Oct 27 13:49:51 7-srv-h sshd[4448]: fatal: no hostkey alg [preauth]

решаются они так:

~# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
~# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
~# ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

*

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.