Re: Question about CVS-SSH

2005-06-13 Thread Asbjørn Sæbø
On Fri, Jun 10, 2005 at 02:23:03PM -0400, Huaer XC wrote:
 Dear CVS users:
 
 I am a newbie in this field. And I am trying to setup CVS on a Linux
 Mandrake server, and maintain my codes through SSH by different PCs
 including Win-XP and Linux system. (I followed a instruction on the
 following link:
 http://mariner.cs.ucdavis.edu/slackware/doc/applications/cvs-over-ssh.txt)
 
 Now I did the following things in my server. 
 1) I have setup CVSROOT in my account /home/cvs, and a repository
 named ABC has been imported.

Since CVS is a server thing, I prefer to have the repository installed 
somewhere else than in my home directory.  (Typically I choose 
/local/cvs or something like that.)

 [...]

 After I re-login to the remote workstation, and run:
 cve checkout ABC
 It return the following error info: 
 cvs [checkout aborted]: Cannot check out files into the repository itself

Is your home directory shared between your server and the workstation?

The error message seems to indicate to me that you are trying to check 
out a copy of the repository and placing the checked out copy in the 
repository itself.

Try placing the repository somewhere else, away from  your home 
directory.

Asbjørn



___
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs


Question about CVS-SSH

2005-06-10 Thread Huaer XC
Dear CVS users:

I am a newbie in this field. And I am trying to setup CVS on a Linux
Mandrake server, and maintain my codes through SSH by different PCs
including Win-XP and Linux system. (I followed a instruction on the
following link:
http://mariner.cs.ucdavis.edu/slackware/doc/applications/cvs-over-ssh.txt)

Now I did the following things in my server. 
1) I have setup CVSROOT in my account /home/cvs, and a repository
named ABC has been imported.
2) then I generate public key authentication for the cvs account by
ssh-keygen -b 2048 -t dsa
3) copy /root/.ssh/id_dsa.pub into the directory /home/cvs/.ssh2
4) generate .ssh2/authorization, and put the following two lines
into the file:
key id_dsa.pub
Options command=/usr/bin/cvs server,no-x11-forwarding

At the remote workstation with Debian Linux system,  I did the following:
1) in .cshrc, add the following two lines 
   setenv CVS_RSH ssh
   setenv CVSROOT :ext:[EMAIL PROTECTED]:/home/cvs
2) Copy id_dsa.pub from the server and put it in the .ssh2 directory.
3) echo idkey id_dsa  ~/.ssh2/identification

After I re-login to the remote workstation, and run:
cve checkout ABC
It return the following error info: 
cvs [checkout aborted]: Cannot check out files into the repository itself

Please help what I was doing wrong in the above steps, and please give
me more suggestions if possible, many thanks.

Huaer


___
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs