Skip to content

Instantly share code, notes, and snippets.

@tooky
Created March 20, 2012 16:16
Show Gist options
  • Save tooky/2137772 to your computer and use it in GitHub Desktop.
Save tooky/2137772 to your computer and use it in GitHub Desktop.
SSH Config for Simple Pairing Tunnels
# 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