Making tmux do idle timeouts?

Viewed 423

Is there any way to configure tmux to kill an idle session? I connect to a server with:

ssh -t host-name tmux new -A -s session-name

Most of the time, I want tmux to keep the session nailed up even if my ssh connection dies. This protects me against transient issues like my desktop crashing. That is, of course, the reason tmux exists.

But if I've simply forgotten to log out, I'd like the session to get killed after a sufficiently long idle time (say, 24 hours).

0 Answers
Related