If your SSH Session disconnect even if you enabled “Sending of null packets to keep session active” and “Enable TCP keepalives (SO_KEEPALIVE option)” you might want to try this:
From the Putty FAQ:
On Windows NT, 2000, or XP, the registry key to create or change is
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpip
ParametersTcpMaxDataRetransmissions
and it must be of type DWORD. (See MS Knowledge Base articles 120642 and 314053 for more information.)
Set the key’s value to something like 10. This will cause Windows to try harder to keep connections alive instead of abandoning them.
Description of the registry key:
TcpMaxConnectRetransmissions
Key: TcpipParameters
Value Type: REG_DWORD — Number
Valid Range: 0 — 0xFFFFFFFF
Default: 3 (in Windows NT)
Default: 2 (in Windows 2000)
Description: This parameter determines the number of times TCP will retransmit a connect request (SYN) before aborting the attempt. The retransmission timeout is doubled with each successive retransmission in a given connect attempt. The initial timeout value is three seconds.
If this does not work for you, you could start for example top (top –d 2, delay 2s) which should have more or less the same result.

2 Comments
1 Aaron's chunk of the web wrote:
Here are a few of the cool links I came accross today:kevindevin.com — The Podcast for Sys Adminsgliffy — web diagramsaptana — cross platform ide (dreamweaver killer)SpeedswitchXP — cpu freq control for laptops running XPPutty SSH TimeoutsLinux and AD Whi
2 Cameron Hamill wrote:
Hello michu,
Can I please send you a screen shot to see if I have followed your tips in this blog properly?
Thanks very much for the blog,
cameron.hamill@gmail.com