Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 0 down vote accepted

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 - http://monkey.org/~marius/pages/?page=trickle

share|improve this answer

For openssh, see man sftp

 -l limit
        Limits the used bandwidth, specified in Kbit/s.
share|improve this answer
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 '12 at 7:49
OpenSSH doesn't support a server side bandwith limit. – H.-Dirk Schmitt Sep 9 '12 at 9:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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