Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Last active July 1, 2020 04:02
Show Gist options
  • Save kgriffs/0b27b66f2862537962bb057a313368c1 to your computer and use it in GitHub Desktop.
Save kgriffs/0b27b66f2862537962bb057a313368c1 to your computer and use it in GitHub Desktop.
Automatically Log Out Bash Session (Also SSH) for All Users - Linux Server (Tested on Ubuntu 18.04)
# sudo vim /etc/profile.d/autologout.sh
TMOUT=900
readonly TMOUT
export TMOUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment