Created
January 19, 2011 19:42
-
-
Save gumayunov/786709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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