KVM VPS: Connection closed by

Daca puteti da ping catre server dar in schimb pe ssh primiti eroarea "Connection closed by [VPS IP]", accesati VPS-ul prin VNC si verificati /var/log/auth.log sau /var/log/secure, dupa urmatoarea eroarea:

error: Could not load host key: /etc/ssh/ssh_host_rsa_key
error: Could not load host key: /etc/ssh/ssh_host_dsa_key
error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key

In acest caz folositi comenzile de mai jos pentru rezolvarea problemei :
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_key
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key 
ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key

Dupa ce ati rulat comenzile de mai sus restartati serverul folosind comanda reboot.


 Tipărire

V-ar mai putea interesa și