Skip to content

Instantly share code, notes, and snippets.

@artemave
Created December 26, 2011 19:48
Show Gist options
  • Save artemave/1521999 to your computer and use it in GitHub Desktop.
Save artemave/1521999 to your computer and use it in GitHub Desktop.
Slow down ssh on mac
1. edit /etc/services to change default ssh port to something exotic e.g. 24455 - we don't want to slow useful ssh connections
2. (re)start 'Remote login' in system prefs->sharing
3. sudo ipfw pipe 1 config bw 5KByte/s
4. sudo ipfw add 1 pipe 1 src-port 24455
Now `ssh localhost -p 24455` and experience the power of slow connection
Unslow it when you've had enough:
sudo ipfw delete 1
Magic commands copied from here http://hints.macworld.com/article.php?story=20080119112509736
Fix github ssh (~/.ssh/config):
Host github.com
HostName github.com
Port 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment