Re: limiting SSH client's bandwidth?



Tomasz Chmielewski wrote:
Is it somehow possible to limit OpenSSH client's bandwidth?

Today I was copying data (whole block devices) over internet
with:

dd if=/dev/san10/xen1 | bzip2 -9 | ssh 192.168.15.46 "bzip2 -d | dd of=/dev/san18/xen1"


It worked fine, but the latency of other connections was horrible,
because the above connection ate almost all bandwidth available.


scp has this option:

-l limit
Limits the used bandwidth, specified in Kbit/s.

But it looks that it's not available to ssh.

I wouldn't like to use 3rd party programs or system settings,
because they are not portable, sometimes require root privileges
and are just additional burden for a one-off task.


You can also look at the pv command, take a look at man pv it has a
very nice limiting function build for these kind of things.

Best regards,

Jelle



Relevant Pages

  • Re: Evil monopolists and the future of the internet
    ... "The End of the Internet?" ... "The nation's largest telephone and cable companies are ... excess bandwidth after hours (I don't know if such is still ... multiple connections to a website based somewhere in Rio ...
    (sci.econ)
  • Re: Need help with bandwidth management . . .
    ... The bandwidth managements is much better in v24 than in v23: ... QoS lan port settings, and I cannot get anything consistent. ... it common practice on their home connections. ... first one in my opinion is bandwidth management. ...
    (alt.internet.wireless)
  • Re: Need help with bandwidth management . . .
    ... also be a good time to separate the wired from the wireless parts of ... wired connections. ... QoS lan port settings, and I cannot get anything consistent. ... switch ports and limit the bandwidth per port (the settings are ...
    (alt.internet.wireless)
  • Re: Multiple APs
    ... See above quotation from the data sheet. ... connections could be handled by various access points. ... With the proper application of bandwidth ... expect instant response time. ...
    (alt.internet.wireless)
  • Re: Postfix - Limit Bandwidth
    ... but it is using up all our bandwidth. ... I've not had to do this with Postfix, but I have with certain other ... And this is because most MTAs will open lots of outbound TCP/IP ... connections if they have lots of mail to deliver. ...
    (Fedora)