[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cvs over ext
Mark D. Baushke
Re: cvs over ext
Tue, 13 Sep 2005 02:47:47 -0700
-----BEGIN PGP SIGNED MESSAGE-----
manish popli <address@hidden> writes:
> i m using CVS over pserver ...
> now i want to configure it for ext (ssh)..wat i have
> to do for it..plz guide me
No special configuration should be necessary for the cvs executable.
The big change is that you now need for all users to be able to
login to your cvs server machine as their own identities.
That is, each individual running on a cvs client will need to be able to
connect to your cvs host and run the 'cvs server' command.
A quick test, just to see if executing a remote command on your cvs
server machine is possible is to run a command from your client on
the server. For example, the 'date' command...
If you would use a CVSROOT of :ext:mycvsbox.dom.ain/my/cvs/directory,
then you should probably be able to run the command
ssh mycvsbox.dom.ain date
If you are not using an ssh-agent and your server is not configured for
.shosts (btw: using a .shosts file is considered by most folks to be a
bad idea), you will likely be prompted for either a pass phrase or
a login password for the mycvsbox.dom.ain host.
Next up, try running something simple like the 'cvs version' command.
Set the environment variable CVSROOT to your pathname. A csh or tcsh
user might use this:
setenv CVSROOT :ext:mycvsbox.dom.ain/my/cvs/directory
a bourne shell user would use
and then the cvs command:
cvs -t version
should produce output like this:
% cvs -t version
-> main loop with CVSROOT=mycvsbox.dom.ain:/tmp/mdb-repos
Client: Concurrent Versions System (CVS) 1.12.12 (client/server)
-> Starting server: ssh mycvsbox.dom.ain cvs server
Server: Concurrent Versions System (CVS) 1.12.12 (client/server)
You will notice that the command given after the 'Starting server:' text
is the command that is being used to connect to your server. In this
case, the 'ssh' was the default built into the cvs executable and the
:ext: indicated to use the 'cvs server' protocol and command rather than
the 'cvs pserver' protocol and command on the server side.
If you are using a version of cvs where the default transport was
not cvs, or was configured using --with-rsh=rsh instead of the
default --with-rsh=ssh, you may need to set the global environment
variable CVS_RSH to 'ssh' (or whatever your ssh client is called,
for example 'putty').
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
-----END PGP SIGNATURE-----