Help centerLinux
Why does SSH say "kex_exchange_identification: Connection reset by peer"?
1 min read|Updated Nov 23, 2026
Short answer
The connection to port 22 opened and was cut before the login started. Usually a VPN or your network interferes, your IP is banned after failed logins, or the server is overloaded. Test without the VPN and from another network, then restart from the dashboard.
- 01
Turn off your VPN or proxy
and try again. If it works without it, let the server's IP bypass the VPN with split tunneling.
- 02
Try another network
, for example your phone's hotspot. If SSH works there, your usual network interferes.
- 03
Wait a few minutes
if you mistyped the password several times and installed fail2ban or a similar tool. It bans your IP for a while.
- 04
Restart the server from the dashboard
and wait two minutes. A full disk or used up memory often looks like this.
Once you're in, journalctl -u ssh -n 50 (or -u sshd) shows why connections were dropped.
Did this solve it?
The full guide
Can't SSH Into Your VPS? Fixes for 6 Common Errors
8 min read