I would like to log all commands executed over SSH.
Say,
ssh something@server.com 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.
How to log "remote execution over SSH"
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?