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..
See this question for possible solutions.
If you use
There is also
Add the following lines in user's .bashrc
Edit the file .screenrc
It will lock the screen which is idle for more than 15 minutes and if you try to access it again, you will have to enter the password.