What causes ssh error kex-exchange-identification: connection closed by remote


You want to log into your Synology Nas through ssh and get the above message.


The IP address you are currently on has probably been blocked by trying too many times when configuring the ssh connection.

The Synology NAS has this auto block function that adds IPs to the block list that have tried too much.

how to check and Fix

On the host machine go in a browser to the following address to see what your IP is ipecho.net.

Copy the IP address from the browser and go to the DSM of your nas. Goto Control panel > Security > Protection > Allow/Block list > Block list > Search > paste the ip > if ip in Block list then remove.

It should work now.