·
1 分钟阅读时长
·
134
字
·
-阅读
-评论
title: “SSH Login Failure — Connection reset by peer” tags:
- WebShell slug: af305b63 date: 2022-10-20 20:35:52 summary: “Troubleshooting kex_exchange_identification: read: Connection reset by peer during SSH login, with likely causes and checks.”
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.

