Ubuntu ssh Broken Pipe

After upgrading to 11.04 and doing a new install of 11.10 my ssh sessions keep timing out if left alone for too long.

The solution is to add

ServerAliveInterval 60

to /etc/ssh/ssh_config - or to ~/.ssh/config