[eluser]kimme[/eluser]
Using the TMOUT variable access to remote hosts can be closed as well:
test@linux1:~> ssh root@linux2
Last login: Mon Nov 1 14:02:13 2010 from linux1.testenv.site
linux2:~ # timed out waiting for input: auto-logout
Connection to 192.168.66.10 closed.
test@linux1:~>