News for hackers. Stuff that matters.
Re:SSH Bastion Host Best Practices by LinuxBender on Thursday January 13, 2022 @06:29PM (#29928498)
Correct. For that you would populate the variable TMOUT to a positive number in seconds and make that variable read-only

  grep ^read /etc/profile.d/timeout.sh
  readonly TMOUT=7200
This variable can also be set in tmux and gnu screen. People usually figure out fairly quick how to bypass the timer but it is handy when people console into servers via the drac/ilo and forget to log out. Some shells don't do anything with TMOUT so a bastion must only have vetted shells.

There are no comments on this comment yet.