How to keep idle session from exiting
A bash
shell can be configured to exit after a certain amount of idle time. This value is defined with the TMOUT
variable.
For example, TMOUT=300
will cause the shell to exit after 5 minutes (300 seconds) of inactivity.