I have a closed source program which calls server over ssh and executes set of commands. Could you tell me how can I log all commands? server is ubuntu
thank you
|
I have a closed source program which calls server over ssh and executes set of commands. Could you tell me how can I log all commands? server is ubuntu thank you |
|||
|
|
|
Snoopy can be used to log all commands ran on a system. Logs will be sent to syslog. |
|||
|
|
|
Without knowing exactly how it's doing it's thing, there's no one answer that I can give. However, a few possibilities:
|
|||
|
|
If the close source program allows you to edit remote ssh paramters or you can put the commands into a shell script, you can wrap your execution around the "script" command on the remote server:
In this case, the output of ps -ef is saved into the file ps.log |
|||
|
|