Bug 1147

Summary: add rate limit command to sftp
Product: Portable OpenSSH Reporter: Deepak Kaul <Deepak.Kaul>
Component: sftpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P4 Keywords: low-hanging-fruit
Version: 4.3p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1803    

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