All, I have an Ubuntu host that accepts SSH connections. How can I log all commands that are run on a specific account that logs in via SSH?
Thanks
I don't think SSHD logs commands while the user is logged in.
you can check who logged in by checking
/var/log/auth.log
and cross reference it to their history
/home/sshuser/.bash_history
history will have commands local or remote though.
I have a similar problem and wrote the tool log-user-session which stores all shell output into a root-only accessible session log file. It can be enabled via forced command on sshd_conf or ~/.ssh/authorized keys (see documentation).