Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to record the activity for every ssh user connecting to my box. I think screen could help with it. I'm thinking on having screen running for every ssh user automatically upon ssh login and recording its activity to some file. Is that possible?

share|improve this question
    
serverfault.com/questions/362532/… –  Iain Dec 29 '12 at 9:31
add comment

2 Answers

up vote 1 down vote accepted

If your OS allows it, consider to use byobu, see some arguments for the why here: http://superuser.com/questions/423310/byobu-versus-gnu-screen-versus-tmux

Other options for logging user activities you'll find here: http://www.howtoforge.com/options-for-user-auditing-on-linux-platforms

share|improve this answer
add comment

See also this program, that was designed to be used with sshd's ForceCommand: https://github.com/open-ch/log-user-session

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.