i also faced similar issue today where i was not able to login to Linux Server and getting same error.
"kex-exchange-identification-read-connection-reset-by-peer"
So this was happening because my /etc/group file was blank somehow. and after restoring the file from backup and then restarted the sshd service sorted the issue.