I'd like to let users download / upload files via scp to my centos 6.0 system, it's connected to lan via Gigabit ethernet, but I don't want transfers to flow at that speed. I want to limit the speed to 10Mb/s.

I have managed to find the right configuration for vsftpd to limit the rate, but failing to find the same for sshd.

Any help would be very much appreciated.

Edit : Just to make it clearer, I am trying to limit the max speed on the server side.


You'll have to implement QOS which won't differentiate between ssh and scp (since scp uses ssh protocol on the same port).

  • 1
    Also see <serverfault.com/questions/146010/…> on how it is possible (to some extent) to differentiate between ssh and scp. – Oliver Apr 30 '12 at 16:46
  • Today I learned something, cool! – platinummonkey Apr 30 '12 at 19:16
  • Hmmm. Too bad there is no simple way like there is for vsftpd, I think i'll just use iptables or tc qdisc (netm) – eitama Apr 30 '12 at 21:08

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.