0

My question is somewhat similar to this, but a little different from that:

I want to monitor the file execution/access history on a CentOS 7.2 machine. I know that a remote server is calling some files on my local machine through SSH in order to finish some tasks, so I want to find out what files on my local machine that the server is calling. I tried to use the terminal command:

ls -lu

but it didn't show any invocation history that was triggered by the remote server through SSH. Later I learned about inotify. But I also heard that it's not available on Centos 7. Is it true? If not, how should I use it? I didn't find a dirty and quick inotify tutorial for centos. Is there any system logs that records this type of information? Any other ideas on how to achieve my goal?

4
  • "a remote server is calling some files on my local machine..." How is this remote server accessing the local files? Through NFS? SSH? SFTP? Something else?
    – Kenster
    Oct 5, 2018 at 11:37
  • @Kenster Through SSH. Thanks I added that information to the questions
    – Young
    Oct 5, 2018 at 16:02
  • SSH isn't inherently a file-access protocol. What is this remote program invoking through ssh to access these files?
    – Kenster
    Oct 5, 2018 at 16:07
  • @Kenster Some scripts. Python or bash scripts or both.
    – Young
    Oct 5, 2018 at 16:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.