Set auto-logout time for SSH sessions

You can use the variable TMOUT for auto-logout time. Also this can set in bash_profile or bashrc file.

TMOUT=1800 ( For 30 minute idle time)