How do I log every command executed by a user?
How can I log SSH activity on 10.04 Ubuntu Server? This includes all commands he issued and output he got.
2 options I see for you:
But the bottom-line is, if you don't trust a user, don't allow them on your system. No system is bulletproof.
to /etc/ssh/sshd_config and restart.
Note: "Logging with a DEBUG level violates the privacy of users and is not recommended."