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

last updated in Categories , , , , , , , , , , , ,

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?