I was wondering if there was a way to detect which users had an active ssh session, or rather how long they have been logged in.
Thanks!
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityEach ssh session has a corresponding tty process. Just check how long it has been running.