Bug 1147 - add rate limit command to sftp
Summary: add rate limit command to sftp
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: 4.3p1
Hardware: All All
: P4 enhancement
Assignee: Assigned to nobody
URL:
Keywords: low-hanging-fruit
Depends on:
Blocks: V_5_7
  Show dependency treegraph
 
Reported: 2006-02-02 08:33 AEDT by Deepak Kaul
Modified: 2011-01-24 12:33 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Kaul 2006-02-02 08:33:05 AEDT
Add a command to sftp that will allow the transfer rate to be limited like scp.

prompt> scp -l <Kbit/s> <localfile> <user>@<host>:<remotefile>

would limit the scp transfer rate

Adding this to sftp would be extremely useful.  Here is an example of what I would like to see

prompt> sftp <user>@<host>
sftp> limit <Kbit/s>
sftp> put <localfile1> <remotefile1>
sftp> limit
sftp> put <localfile2> <remotefile2>
sftp> exit
prompt> 

Limit with a number after it would limit the bandwidth Kbit/s.
Limit with nothing after it would not limit the bandwidth.
Comment 1 Damien Miller 2010-09-24 22:18:21 AEST
This has been added to openssh -current and will be in OpenSSH 5.7, due in a couple of months.
Comment 2 Damien Miller 2011-01-24 12:33:38 AEDT
Move resolved bugs to CLOSED after 5.7 release