Skip to content

Instantly share code, notes, and snippets.

@gumayunov
Created January 19, 2011 19:42
Show Gist options
  • Save gumayunov/786709 to your computer and use it in GitHub Desktop.
Save gumayunov/786709 to your computer and use it in GitHub Desktop.
screen pair programming
User john (driver):
echo "multiuser on" >> ~/.screenrc
sudo chmod u+s /usr/bin/screen
sudo chmod 755 /var/run/screen
screen -S pairprog
Ctrl-a :acladd mike
User mike (after login on john machine):
screen -rx john/pairprog
For the same server browsing (http://oursite.local for example) mike should setup SSH tunnel:
ssh -L A:80:B:80 mike@C
where:
A - local IP on mike machine.
B - local webserver IP on john machine
C - external IP for john machine
example:
ssh -L 127.0.1.1:80:127.0.0.1:80 [email protected]
sudo echo "127.0.1.1 oursite.local" >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment