Created
December 26, 2011 19:48
-
-
Save artemave/1521999 to your computer and use it in GitHub Desktop.
Slow down ssh on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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