Erik1

Member
Dec 13, 2014
24
1
3
cPanel Access Level
Root Administrator
In WHM raw FTP log file download gives “the requested log file for the domain is empty” for all domains. There are FTP log files in the logs folder but they are last updated Dec 30 2014. How do I activate FTP logs? Raw apache log file download works fine.

Or are there no logs because I us SFTP (not FTP)?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,256
463
Hello,

SFTP is essentially FTP over SSH. It does not run on the same protocol as FTP. Thus, there is no SFTP activity logged to your FTP log files.

Thank you.
 

elmister

Well-Known Member
Mar 2, 2004
48
3
158
there is a way to log SFTP activity

in /etc/ssh/sshd_config
look for the line

Subsystem sftp /usr/libexec/openssh/sftp-server

change it to

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

i think cPanel will not split this information in the domain's ftp log but you may be able to get some data

@cPanel: this is something to do, you've added ftpsh as a default shell allowing all users to upload files without logging the uploads, if a password gets compromised we will not be able to track the upload
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,256
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,256
463
Thank you but i'm unable to register there, i need an invite code, forum login details don't work there
You should be able to leave the invite code blank. Let us know if this does not work.

Thank you.