LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-29-2008, 03:38 AM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
enforce a bandwidth limit for scp per user


When using scp to transfer files, I can use the "-l" option to limit the bandwidth of the file transfer.

Now I have a ssh/scp server running.
I want to enforce a bandwidth limit for scp per user.

How should I do this?
 
Old 06-29-2008, 02:00 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You could make a command alias.
Code:
alias scp="scp -l 100"
Different distributions handle this in different ways. My PCLOS system has a script /etc/profile.d/alias.sh which contains commands that are executed when anyone logs in. Aliases are defined like that. Other methods used on UNIX and Linux systems include putting log in commands in /etc/bash.local or in each person's $HOME/.bashrc or $HOME/.alias.
 
  


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
Limit Bandwidth as Data Volume Approaches Limit sweno Linux - Server 1 06-12-2008 07:10 AM
How do I limit my bandwidth from the PC? koobi Linux - Networking 3 06-07-2008 04:34 AM
LXer: Enforce User Guidelines And Restrictions With Sabayon On Fedora 8 (Gnome) LXer Syndicated Linux News 0 05-09-2008 04:20 PM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
Limit the access to user connectiing through SCP Menestrel Linux - Newbie 4 07-14-2005 04:36 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration