Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Apr 30 '12 at 14:36

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
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

 
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.