Is there any possibility to limit the bandwidth of an SFTP user? My server has an upload of ~500kb/s and I don't want to 'spend' it all on one user
2 Answers
For openssh, see man sftp
-l limit Limits the used bandwidth, specified in Kbit/s.
-
Alright, this enables someone who logs in to the shell to limit his own bandwidth. However, I want to limit the user's bandwidth before the log in, permanently. I don't think you can do that with the -l parameter.– VincentSep 9, 2012 at 7:49
-
4
If you are using WHM (Web Host Manager), you can simply go to "Limit Bandwidth Usage" under the "Account Functions" section. Choose an account and then enter a limit.
If not, you can use a utility called trickle - https://github.com/mariusae/trickle
-
2Accepted answer is getting downvotes. Completely irrelevant but otherwise accurate references to man pages is getting upvotes. Weird!– LMSinghMay 14, 2020 at 22:57
tc
, but that doesn't understand "users", only ip addresses.