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/
Ah, facepalm. It's HTTP only, uses the host header to figure out which tunnel to use. The login banner I got when I connected to port 22 is from the server itself. Wishful thinking on my part.
Reverse ssh tunnelling would have made this a lot easier :(