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/
Thanks for the netstat - that does make it less brittle. Still have to parse ifconfig, but it's better than it was.
localtunnel.com seems like it is meant for http forwarding and might not work for ssh... is that just because of their example use cases?