My script for pair sessions on my box.
- downloads the appropriate ssh keys from github
- copies the appropriate 'ssh pair@your-external-ip' command to your clipboard (see Note #1)
- sets up the tmux session
- cleans up the session, and the keys after it's done
First, brew install tmux
Then you type:
pair-session marksim
After that, just hit paste into your pair's chat window and voila, they ssh in and are automatically connected via tmux.
- If you are running linux, you can easily alias pbcopy and pbpaste like so: http://whereswalden.com/2009/10/23/pbcopy-and-pbpaste-for-linux/
I'd start with the routing table:
netstat -rn -f inet
From there you get the interface with the default gateway then use what you have to get the IP.Another suggestion would be to use something like localtunnel.com instead and avoid port forwarding and figuring out IP addresses. If you don't mind installing the localtunnel gem then you don't need to punch any holes in the firewall, it's all done with SSH port forwarding and a remote service.