Centos – Access logs of sftp on centos

centoscentos6ftplogging

Is it possible to log the sftp logged in informations (Who accessed, when and from where )

Like which sftp user have logged on to the file server , This may also contain information such as ip address of the user.

The log may also give info such as directories accessed, and at last the commands executed.

I do have a dedicated centos server, of which root access is shared. So it is very important for me to track it.

If there is already a log file, may i know where on centos i can find it.

Thanks

Best Answer

SFTP as already mentioned works over ssh(port 22). So it's actual ssh users and you have to check corresponding logs.

It should be log: /var/log/secure if it's not rewritten by your actual rsyslog configuration.