<-- Instant Pages for Google Chrome -->


On 2016年01月25日, in linux, by netoearth

You can log sftp, try this:

In /etc/ssh/sshd_config file, change this line:

Subsystem    sftp    /usr/libexec/openssh/sftp-server -f LOCAL5 -l INFO

Then config syslog log facility AUTH to your file. In Centos 6. edit /etc/rsyslog.conf, add this line:

local5.*                        /var/log/sftpd.log

After making these changes reload (kill -HUP) or restart sshd and restart rsyslog for them to take effect.

Tagged with: