Pair programming should not involve two people hunched over one screen. Using ssh and tmux, both people can share the same screen on seperate computers and see live updates.
Ed and Ian want to pair program.
- Ed ssh's into a machine
- Ed creates a user for Ian
ed@machine:~$ adduser ian
- Ed starts a tmux session
ed@machine:~$ tmux
- Ian ssh's into the machine
- Ian changes users to become Ed
ian@machine:~$ su ed
- Ian attaches to ed's tmux session
(note Ian's prompt will display 'ed')
ed@machine:~$ tmux attach
Now Ian and Ed share a screen and can see what the other is typing and make changes. BAM.
Thanks to Ed Zane for showing me this.