Using the question here I can see the users connected with ssh. Is there a way to see (from terminal) what program the users connected with ssh are running?
EDIT
The ssh users are running commands as sudo
. and when I run ps aux
it shows root as the user for those commands. Is there a way to see which of those are executed from ssh connected users?