Re: limiting SSH client's bandwidth?
- From: Jelle de Jong <jelledejong@xxxxxxxxxxxxx>
- Date: Thu, 12 Feb 2009 23:17:31 +0100
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
- References:
- limiting SSH client's bandwidth?
- From: Tomasz Chmielewski
- limiting SSH client's bandwidth?
- Prev by Date: password prompt, but pki auth working!?...
- Next by Date: Key table entry not found with OpenSSH and GSS-API auth
- Previous by thread: Re: limiting SSH client's bandwidth?
- Next by thread: AIX and openssh v5.1
- Index(es):
Relevant Pages
|