This error usually happens when you connect using SFTP protocol to server that is not SFTP, and it starts sends invalid greeting back to the client. After some time (or, when he receives 1kb of strange data) client drops connection and returns this error.
Kind regards,
Jasmine.
Server identification string too long (more than 1024 bytes)