« Some English Expressions | Main | Comments are allowed.. »

December 05, 2005

CVS across Firewall

Out of all the search results I got, this one is the most helpful.

My configuration:
1. monolith is the gateway, and all pri machines can not connect to the internet directly.
2. aho runs the CVS server that I want to connect to.

Solution:
1. On monolith, run below to establish a SSH tunnel:
ssh -g -f monolith -L 10000:aho.zephyr-software.com:22 sleep 7200000

2. On pri-035, make a ~/.ssh/config file that contains below:
Host cvsserver
Hostname monolith
Port 10000

3. Add lines below to .bash_profile on pri-035:
export CVS_RSH=ssh
export CVSROOT=:ext:cvsserver:/home/zephyr/zephyr-cvs

4. Now in some directory, you can check out Strata:
cvs co strata

Isn't it cool?

Posted by Roy at December 5, 2005 09:40 PM

Comments