0
I am running a ssh-service on my computer and clients connect to it from all over the network. Is it possible to see the commands that people have run on my computer?
for example a user connects to my computer and runs a few commands, I want to log and see all the commands that he and other users have used (their command history).
so it can't save a log file for each individual connection? or for each individual user? – orezvani – 2013-07-24T03:26:00.937
@emab I don't think it's trivial to monitor ssh-input because it is designed with user privacy in mind. I think it would be far less cumbersome to hack bash (and the other shells) on your system and monitor input that way. The history files are writable by the users, so anyone can flush their history and delete the files before logging out. Alternatively, one could monitor the terminal-stdout files in /dev/pts. That would be far less work to set up. What do you wand to accomplish with this anyway? – Ярослав Рахматуллин – 2013-07-24T04:29:29.067