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/
Great script, Mark. I made a small change as I didn't like the idea of leaving port 22 open to the public internet. I know it's not a great measure of protection, but obfuscating the ssh port seemed like a very easy way to hopefully avoid unwanted attention from scanners during the pair session.
https://gist.github.com/kmeister2000/5935441