Basically, I want to log each and every file which is sent or received via SCP on the server.
Let say a user does a SCP from Server-1 to Server-2. I figured out the way to get logs on senders side, but how to get what is been transferred on the receiver's side?
I want the logs on the receiver's side containing the names of the files which are transferred to it via SCP.
Also to get logs on senders side I am using my bash script which first save the filename to a log file and then use SCP to transfer it. Is there any better approach to do so.
Thanks in advance for any suggestion.