[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "mobile" CVS
Re: "mobile" CVS
Tue, 20 Jul 2004 13:15:45 -0700
On Tue July 20 2004 12:48 pm, Spiro Trikaliotis wrote:
> I got a question on using CVS (what else?). I'm using a laptop which
> accesses a remote repository via ssh.
> Unfortunately, depending on whether I'm "inside" the network which contains
> the repository, or "outside", I have to use different ssh settings. The
> machine name, as well as the used port change. I cannot access the
> repository server with the "inside" settings from outside, and vice
> Currently, I help myself by utilizing a ~/.ssh/config file, which
> contains two entries, namely, CVS-local and CVS-remote, with the correct
> settings for each case. Depending of whether I'm "in" or "out", I rename
> one of both to "CVS", and only use the ssh server name "CVS" when
> working with CVS.
> This works, but is annoying. I ask myself if there is another way to
> perform this? I will ask this on an ssh mailing list, too, but there
> might be some ideas here which do not depend on ssh, but are cvs
I use dfferent repository paths
Internally: cvs -f -d :ext:address@hidden:/var/cvs checkput -P <module>
Externally: cvs -f -d :ext:address@hidden:/var/cvs checkout -P <module>
"thames" is the internal machine name whereas "rthames" is a ~/.ssh/config
ProxyCommand ssh secure.totalflood.com nc thames 22
It's not perfect.
> Ideally, there would be a solution which would work automatically. I
> already thought about writing a skript which renames the appropriate
> entry depending on my own IP address.
> An option I used before using ~/.ssh/config was to change CVS/Root in
> every directory, but this was rather annoying.
> Any thoughts or experiences on this?
Unix and Network Adminstrator
6033 W.Century Blvd.
Los Angeles, CA 90045