Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

2 Answers 2

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
2  
OpenSSH doesn't support a server side bandwith limit. –  H.-Dirk Schmitt Sep 9 '12 at 9:50

Your Answer

 
discard

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.