Follow

There should be some kind of heartbeat service by default that pings both ends of the connection every few seconds if there's no other activity going on (such as the user typing something in, or receiving text from the remote server) that terminates connections after a reasonable amount of time, for example 30 seconds. This should of course be overrideable for extremely high latency SSH connections such as satellite Internet uplinks.