Created
March 20, 2012 16:16
-
-
Save tooky/2137772 to your computer and use it in GitHub Desktop.
SSH Config for Simple Pairing Tunnels
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
# Put this in your ~/.ssh/config | |
Host pairgate | |
Hostname <central-pairing-server> | |
User <your-user-name> | |
Host pairhost | |
Hostname <central-pairing-server> | |
User <your-user-name> | |
RemoteForward localhost:2222 localhost:22 | |
Host *.pair | |
ProxyCommand ssh -e none -ax pairgate nc -w 5 localhost %p 2>/dev/null # proxy via the shared machine | |
User <pairing-user-on-host-machine> | |
LocalForward localhost:3000 localhost:3000 # for rails development, everyone gets a local server | |
Port 2222 | |
# To host the pairing session | |
# | |
# ssh pairhost -N | |
# | |
# To join a pairing session | |
# | |
# ssh <name-of-host>.pair | |
# | |
# We then use tmux to share a terminal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment