Linux / UNIX Automatically Logout BASH / TCSH / SSH Users After a Period of Inactivity

Posted on in Categories , , , , , , , , , , , , last updated August 30, 2015

My development and testing webserver is used by over 100s of users. These users login from Windows XP, Linux, Mac OS X system via ssh. How do I set or automatically log users out after a period of inactivity under CentOS Linux server to improve server security and save some resources?