To see the current server-wide FTP sessions you can use either of the following commands depending on what FTP server is in use:
/usr/sbin/pure-ftpwho -v FOR PURE-FTPD
/usr/bin/ftpwho -v FOR PROFTPD
Additionally, you can use our API and list the FTP server’s active sessions for a specific user with the following function call:
uapi —user=$username Ftp list_sessions
Note: $username is the FTP username.