SSH/Telnet server session time control

toccnp
toccnp used Ask the Experts™
on
Hi there,
Is there any way to  control the time a remote user is logged on ssh/telnet server? script?

Thanks any help
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Solution Architect
Commented:
it should be a script that works with the "who" command, and of course, running as root, to be able to kill any user session.
use a shell which support autologout variable, like:
  bash, ksh, tcsh
use a shell which support autologout variable, like:
  bash, ksh, tcsh
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Author

Commented:
So, that means it's posible and I am not so lost on this. I have no idea of this, but I'm going to try with RedHat 7.1

Thanks
toccnp:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between Redimido & ahoffmann.
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

troopern
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial