If SSH login fails with
kex_exchange_identification: read: Connection reset by peer, try the following checks.
When using ssh, the -v flag prints debug logs. In the logs below, the server never sends anything; if the first step succeeded, you would see the remote protocol version.

Likely places to check:
/etc/ssh/sshd_configVerify the port is correct; it may not be 22. If you change the config, restart the service with
service sshd restart./etc/hosts.allowand/etc/hosts.denyBy default these files are empty with no active rules; make sure nothing is blocking your client.
Note: editing the above files requires sudo or root privileges.

