I am a big SecureSSH fan on Windows. I prefer it to Putty (apart from when on a public machine and I can just grab Putty :).
One of the options is to send a NOOP every now and then to keep the SSH session alive.
It is frustrating to get distracted and come back to your Terminal and to see it has timed out.
Back in the day I was a
screen user, but these days I can’t be bothered with some of the issues that come along with screen.
When I switched to the mac, I found the ssh session problem in Terminal.app.
I then tweaked my ssh config (~/.ssh/config or /etc/ssh/ssh_config depending on your desired scope)
All is well again.