LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2009, 08:09 PM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Control the ssh speed


I want to use ssh to copy some large files to remote server via the leased line , as I don't want to affect the connection between the servers , can I control the transfer speed of ssh eg. lower the speed to half of normal .

Thx
 
Old 11-10-2009, 09:15 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You can use scp with the '-l' option, from the man page:

Quote:
Limits the used bandwidth, specified in Kbit/s.
eg.

scp -l 80 my_big_file localhost:/tmp

..will transfer at 10KB/s

cheers
 
Old 11-11-2009, 08:19 PM   #3
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kbp View Post
You can use scp with the '-l' option, from the man page:



eg.

scp -l 80 my_big_file localhost:/tmp

..will transfer at 10KB/s

cheers

thx ,

it works , but if I want to use with rsync , how to control the speed when I transfer with rsync ?

the command I used is as below

#rsync -P -e ssh remote_file local_local




Thx.
 
Old 11-11-2009, 08:30 PM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135

Rep: Reputation: 277Reputation: 277Reputation: 277
I've had varying success with trickle:

http://monkey.org/~marius/pages/?page=trickle

By varying, I mean that it was working well for a few months, then inexplicably (perhaps because I didn't care enough to dig deeper...) quit working.

cheers,
 
Old 11-11-2009, 08:58 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
There's no bandwidth control in rsync that I'm aware of... there is a rate limiting module for iptables (ipt_limit.o) but I haven't used it so can't give you any useful advice regarding

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control download speed? phys Slackware 4 01-29-2009 04:05 PM
how to control the speed of lan card. shahg_shahg Linux - Networking 1 04-16-2007 07:18 AM
A8N-E Can't Control Chassis Fan Speed rbvpp Linux - Hardware 1 07-29-2005 04:57 PM
control download speed arsham Linux - Software 1 05-12-2005 03:45 PM
howto: control CPU fan speed and Northbridge fan speed? hedpe Linux - Software 2 04-18-2005 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration