I want to make my terminal freeze, if it is not used for more than 15 minutes. I do have the option to edit the .ssh/sshd_config.
But I want a script instead of this..
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
See this question for possible solutions.
If you use
screen you can press Ctrl-a x to manually lock your session. Your user password is required to unlock it again. For an automatic locking after 15 minutes (900 seconds) just specify
idle 900 lockscreen in your
There is also
vlock which doesn't require an already running screen session but has to be run manually.