Rezolvare problema chei ssh_host_rsa si dsa
Daca din ceva motiv va lipsesc cheile ssh_host_dsa_key si ssh_host_rsa_key , mai jos aveti comenzile pe care trebuie sa le rulati pentru a reface cheile. Eroarea primita:
root@root:/# /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key
Generare cheie SSH_HOST_RSA_KEY , fara parola (dam enter la prompt)
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_rsa_key
Generare cheie SSH_HOST_DSA_KEY
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
Restartam serverul ssh si acum ar trebui sa functioneze corect.