After upgrading to OS X Lion, I’ve experienced broken pipe in SSH connections after some idle time. To prevent that, I’ve added

ServerAliveInterval 30 To `/etc/ssh_config`. Hope it helps someone too.