This question already has an answer here:
I'm having the a bit of a problem with accessing remote RedHat servers from a Windows machine using Cygwin SSH client.
What I do is I run some fairly time-consuming QA scripts on the remote RedHat machine by logging in from home Windows machine. At the client end I use Cygwin SSH in an ordinary Cygwin console window. As long as I'm working interactively (i.e. executing commands from the command line) everything is fine. When I start the script, everything works fine as well as long as the script produces any visible activity on the terminal, i.e. as long as it prints something to the screen. But if there's is a significant pause in the output, the connection to the RedHat machine eventually gets dropped with "Write Failed: Connection reset by peer" message.
Is this some sort of timeout/keep-alive issue? And if so, what do I have to configure to stop this from happening? And where (server side or client side)?