By 20 Luglio 2016 0 Comments

SSH – network error software caused connection abort

Questo problema mi è capitato a seguito di un Hang del server (che ha causato anche il problema a sudoers).
Non era più possibile collegarsi in SSH. Il servizio era installato e rispondeva correttamente ad un telnet sulla porta 22.

Ho risolto il problema ri-generando le “chiavi” per SSH.
rm /etc/ssh/ssh_host_*_key*
(Attenzione non settare mai la passphrase!)
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t ecdsa -f /etc/ssh_host_ecdsa_key
service ssh restart

Questo comando è stato facoltativo : chmod 600 -R /etc/ssh
(nel senso che il tutto era già funzionale)

network error software caused connection abort, ssh connection abort, PuTTY gives Network error Software caused connection abort

Posted in: Linux

About the Author:

shared on wplocker.com