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

  • possibly you coukld use tc, but that doesn't understand "users", only ip addresses.
    – Jasen
    Sep 15, 2018 at 21:20

2 Answers 2


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.
    – Vincent
    Sep 9, 2012 at 7:49
  • 4
    OpenSSH doesn't support a server side bandwith limit. Sep 9, 2012 at 9:50

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

  • 2
    Accepted answer is getting downvotes. Completely irrelevant but otherwise accurate references to man pages is getting upvotes. Weird!
    – LMSingh
    May 14, 2020 at 22:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.