in ubuntu server (with ssh protocol),
how I can change the time of disconnection for inactivity?
views:
16answers:
1Could you put "exec screen -R" in .bash_profile and "idle 900 lockscreen" in .screenrc to solve this? That'd automatically reattach to their screen session if it's still there and create a new one if it isn't, but lock the screen if it's idle for 900 seconds.
I believe users could disable the idle, though...
Alternately: just plain "exec screen" and also "autodetach off" in .screenrc so that their sessions die if they get disconnected.
http://www.openg.info/entry/timeout-ssh-sessions-inactivity
Or you can use
ClientAliveInterval 600 ClientAliveCountMax 0 and it works
or
using export TMOUT=3600 in my ~/.bashrc to close an inactive session after 1 hour.
Both have been reported to work by the user in: http://www.openg.info/entry/ssh-session-inactivity-configuration
Hope this helps
PK