If you have put scripts using scp that timeout due to a slow connection or if you are tunneling out through a proxy. Ty the following flags passed into scp.
-o ServerAliveCountMax=1500 -o ServerAliveInterval=20