TCPKeepAlive yes
ServerAliveInterval 45
The first ensures that your ssh client is, in fact, doing TCP keep alives, which it should by default. The second is a relatively sane value, in seconds, of the period of inactivity between client and server after which the keepalive will be sent.
PowerBook G4 Mac OS X (10.4.3) Killer Smile, Soul-Devouring Personality