monitoring network stats and user stats
hi all,
made a sftp server and added a few users and they can upload/download to thier home folder but now i want to monitor the network traffic ie upload /download speed from each individual connections ie the host/ip of the users if not just a total upload/download and also what user is connected to the sftp server, what folder they have access to ie uploading to or downloading to thanks, rob |
found two good ones, still looking -
the below monitors traffic on port 22 plus the username connected - watch -n 0.5 lsof -n -i :22 this one monitors total rx/tx - bwm-ng |
As far as which folders or files they are using, that can be set up by modifying what the SFTP subsystem logs if you are using OpenSSH server. Set a Match block for the group of users and force them into SFTP mode with modified logging:
Code:
Match Group watched However, if you don't want the users roaming around the system when logged in, you can chroot them into a specific directory or hierarchy of directories. |
All times are GMT -5. The time now is 04:12 PM. |