Skip to main content
Solved

Terminal user timeouts

  • January 28, 2025
  • 2 replies
  • 0 views

Forum|alt.badge.img

Since upgrading to 12.2.5, terminal sessions  get disconnected after around an hour, even when 'unset TMOUT'. 

Is there a way to change this so that user sessions are not dropped?

 

 

Best answer by TonyAndres

Hello James,

In SL1 12.2, additional security controls were introduced to harden SL1 and make it more secure. By default, after a period of inactivity, or after a terminal session has been opened for an hour, the terminal session will disconnect. This is the intended behavior and cannot be changed.

However, we also introduced tmux to the SSH sessions in 12.2. If you are working in a terminal session and it disconnects, tmux will save your session and you can simply reconnect to the same session and continue working.

Antonio Andres

Senior Technical Support Engineer | ScienceLogic

2 replies

  • Community Manager
  • Answer
  • January 31, 2025

Hello James,

In SL1 12.2, additional security controls were introduced to harden SL1 and make it more secure. By default, after a period of inactivity, or after a terminal session has been opened for an hour, the terminal session will disconnect. This is the intended behavior and cannot be changed.

However, we also introduced tmux to the SSH sessions in 12.2. If you are working in a terminal session and it disconnects, tmux will save your session and you can simply reconnect to the same session and continue working.

Antonio Andres

Senior Technical Support Engineer | ScienceLogic


Forum|alt.badge.img
  • New Contributor
  • April 14, 2025

ssh -o ServerAliveInterval=5 -o ServerAliveCountMax=1 youruser@yourserver

Does some traffic on the user session, 

still do a unset TMOUT however.