> Do you know about that solution? Or could you suggest something similar?
You could install "snoopy", which will log all command-executed to syslog. Then configure your syslog to forward logs to a remote host. It is not fool-proof, but requires no setup for a user.. Steve -- https://www.steve.org.uk/