Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-29-2008, 04:38 AM   #1
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, 03:00 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You could make a command alias.
alias scp="scp -l 100"
Different distributions handle this in different ways. My PCLOS system has a script /etc/profile.d/ 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.


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

All times are GMT -5. The time now is 09:33 AM.

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