When I close my MacBook with an active SSH session in Terminal and then wake it up, the prompt goes unresponsive.
In about five minutes it says
Write failed: Broken pipe
and terminates.
This also happens when I don't type anything in the Terminal in about fifteen minutes.
Can I force OS X to:
- Keep SSH connection alive for longest time possible
- Kill it immediately once it becomes unresponsive
?