timeout, server not responding. ssh configuration to avoid connection timeouts / broken pipes

client :
vim /etc/ssh/ssh_config
# by evan
SendEnv LANG LC_*
HashKnownHosts yes
TCPKeepAlive no
ServerAliveInterval 5

client: in ~/.ssh/config
Host *
# prevent connection from hanging
ServerAliveInterval 15
# set connection sharing
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p

server: in /etc/ssh/ssd_config:
TCPKeepAlive no
ClientAliveInterval 600
ClientAliveCountMax 3

Because I reuse connections I do not run against maximum session limits (set with MaxStartups in sshd_config).
I also disabled pam and all other authentication methods in sshd_config except public key authentication. PAM has some inactivity timeout as well. Then there is the timeout in the bash shell (‘TMOUT=‘ in /etc/profile.bash) that is disabled by default I think.