I would like to log all commands executed over SSH.
ssh firstname.lastname@example.org COMMAND
I want to log "COMMAND" on server.com
I did search extensively but could not find anything.
There is one more similar question but i don't think there is a solution over there.
I can get a live view with
pstree -p | grep ssh
I did try Snoopy, auditd, and sudosh but could not log those commands over ssh.
There is a http://freecode.com/projects/shwatchr. but i am not able to download the script to test.
is there any other way to get this done?