How to limit the bandwith of a SSH connection

Put this into ~/.ssh/config where 50k is the limit for the connection.

Host server1
    Hostname server1-slow
    Port 222
    proxycommand pv -q -L 50k | nc your.host.example.com 222

An other approach could be to create an alias in ~/.bashrc which could may be look like this (untested) which of course would only work for ssh tunnels created using the ssh-slow alias:

alias ssh-slow='ssh -o "ProxyCommand pv -q -L 50k | nc your.host.example.com 222"'

Comments

 
 
how_to/limit_the_bandwith_of_ssh_connection.txt ยท Last modified: 28.11.2010 03:17 (external edit)
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki