SFTP with limit(l) option

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat SFTP with limit(l) option
# 1  
Old 05-18-2017
SFTP with limit(l) option

Hi,

I have sftp installed in some of my corporate servers (test and production).
However, I notice that it does not have the limit(l) option for bandwidth limit option.

Why is this? Is it because sftp was not installed with other necessary packages?

How do I make sftp available with the limit option?

I log in to one of the servers, and type "# man sftp". As you can see below, the synopsis section does not have [-l limit] in it :

Code:
SYNOPSIS
     sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
          [-o ssh_option] [-P sftp_server_path] [-R num_requests] [-S program]
          [-s subsystem | sftp_server] host
     sftp [[user@]host[:file [file]]]
     sftp [[user@]host[:dir[/]]]
     sftp -b batchfile [user@]host


Regards,
Aigini
# 2  
Old 05-18-2017
Maybe Your OpenSSH-Version is too old.

Look here:

OpenSSH: Release Notes

As far as I understand the text, bandwidth limiting for sftp-client came with version:

OpenSSH 5.7/5.7p1 (2011-01-24)

CentOS(RHEL) 5.x ships OpenSSH Version 4.3. / CentOS(RHEL) 6.x ships OpenSSH Version 5.3 - both too old. If it is an option you may use scp, which has bandwidth limiting since OpenSSH version 3.6.

Last edited by stomp; 05-18-2017 at 05:56 AM..
# 3  
Old 05-18-2017
Is it possible to upgrade the OpenSSH version in RHEL 5.8 to the latest available OpenSSH package? Will there be any stability problems? Or server crash?
# 4  
Old 05-18-2017
You may recompile OpenSSH yourself from sources if you need it badly and use checkinstall to build packages, so you can easily deploy it on similar servers.

I myself would try to find another solution with the available programs. I think that's easier.
# 5  
Old 05-18-2017
It sounds like your remote offices are being clobbered by file transfers. Talk to the people who administer your network. Cisco switches can limit bandwidth by protocol, for example. In this case ssh. It requires some diddling on their part so you may get pushback.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What is -oStrictHostKeyChecking option in SFTP Command?

Can anyone explain me the below sftp command sftp -oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@ -v oIdentityFile=$sftpIdentity -b $PutSFTPbatch.bat $sftpUrl I need explanation for the below parameters with all their possible values -oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@ -v... (1 Reply)
Discussion started by: Little
1 Replies

2. Red Hat

Sftp server/chrooted trying to limit user permissions

I needed to set up an sftp server for an external user to upload data for an internal developer. What I did was created a chrooted user for the external guy, and then created an internal group with full permissions to that directory and then made the internal developer a member of that group so... (5 Replies)
Discussion started by: xdawg
5 Replies

3. Shell Programming and Scripting

mkdir -p option in SFTP session

Hi, I am trying to create more than one directory by using -p option in SFTP session. But it created a directory named -p and ended. It didn't throw any error. sxxxxxxx:(abc)/test> sftp abcuser@zxxxxxxx Connecting to zxxxxxxx... Password: sftp> pwd Remote working directory: /test... (3 Replies)
Discussion started by: gthangav
3 Replies

4. Shell Programming and Scripting

Passwordless SFTP - SCP Option?

I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated. Currently we use SFTP and the script asks for the password of the... (20 Replies)
Discussion started by: Stigy
20 Replies

5. Shell Programming and Scripting

sftp -b option

Hi, what does -b option do in sftp batch mode..?:confused: (1 Reply)
Discussion started by: rahulsxn660
1 Replies

6. UNIX for Advanced & Expert Users

Limit Downloading + X_forwarded_for option in squid

Dear All I m using squid 2.7 Stable 9 and Dansguardian 2.10.1.1, i have compiled both squid and dansguardian, i want use follow_x_forwarded_for in squid make clients IPs visible to squid, but this option is not working correctly, i have also set x_forwarded_for=on in dansguardian and my squid... (0 Replies)
Discussion started by: surfer24
0 Replies

7. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

8. UNIX for Advanced & Expert Users

SFTP - Overwrite [Put -P <file>] option

Hi All Experts, I hope you are all ok! :D My question is simple but I was not able to find an answer in the internet, and that's why I am here! My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
Discussion started by: felipe.vinturin
5 Replies

9. Shell Programming and Scripting

sftp file size limit

Hi, Can some one please tell me the file size limit (if any) while using sftp I am trying to transfer a file ( size is almost 350 MB ) but it fails as shown below. sftp> put file1 ./file1 Uploading file1 to /dir1/./file1 file1 25% 100MB 10.2MB/s 00:28 ETA Couldn't write to remote... (6 Replies)
Discussion started by: vikash_k
6 Replies

10. SCO

sftp on unixware 711 doesnt have -b option

I installed openssh on 711 to gain ssh and sftp. When i type sftp (installed in /usr/local/bin) i get the following available options usage: sftp host which isnt what i expect. I expect the full implementation : sftp host sftp host]] sftp host]]... (0 Replies)
Discussion started by: townsenn
0 Replies
Login or Register to Ask a Question