New answers tagged user
Please check ~/.bash_history. This logging could be disabled easy through.
1 - There could be different approchs to achieve this in Python. This article or this article may help you to log all the commands and then you can do parsing using python. 2 - You can also check Grsecurity to configure Exec logging at kernel level. 3 - Then you can done something like this (simple parsing code): ''A very simple log parser for ssh ...
A simple alternative to complex jail is assigning lshell to the concerned user(s). lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
Top 50 recent answers are included