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?
I don't think SSHD logs commands while the user is logged in.
you can check who logged in by checking
and cross reference it to their history
history will have commands local or remote though.
You can try with snoopy. After you install it, will logs all input command that calls execve to syslog. you'll only find it in the repos for hardy and precise.
You can install it from here.