MacOS X and CVS: how to set up?

Hi, all.

I have a local cvs repository on my MacOS X machine. This works fine
with XCode and Eclipse, but IDEA does not allow a local repository. I
thus decided to set up an ssh-based one via ext: What follows is
probably too many details, but I did not want to miss a critical one.

I turned on ssh access in system preferences.

I set CVS_RSH to ssh

I executed

cvs -d :ext:scott@shadow.local:/Users/Shared/coding/cvs/repository checkout BonusFinder

And everything checked out fine.

I opened up IDEA build 1050, and tried to make and commit a small change.

I would have expected it to ask me for scott@shadow.local's password, but instead,
I was asked for my private key file. Password would be preferred, but
if it wants a key file, well, here goes.

I thus generated a public and private key file via:

work% ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/work/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/work/.ssh/id_rsa.
Your public key has been saved in /Users/work/.ssh/id_rsa.pub.

and then

work% scp id_rsa.pub scott@shadow.local:
scott@shadow.local's password:
id_rsa.pub 100% 227 103.1KB/s
00:00

and then

work% ssh scott@shadow.local
scott@shadow.local's password:
Last login: Wed Jan 7 16:45:55 2004 from 192.168.123.164
Welcome to Darwin!

scott% cd .ssh
scott% mv ../id* .
scott% cat id_rsa.pub > authorized_hosts2
scott% rm id_rsa.pub
scott% exit

So, I now have the id_rsa public key in authorized hosts2 of the account
owning the repository.

Then, went back to IDEA and gave it my private key file id_rsa. This
corresponds to the id_rsa.pub that I just added to authorized_hosts2.

It reported that the command had completed, then said it was not what
was expected. See log dump at end of post.

Sadness.

So, can anyone shed any light on what I may have done incorrectly?

The version of CVS running on this machine is the 10.3 default:

work% cvs -version
Concurrent Versions System (CVS) 1.10 `Halibut' (client/server)

Scott

2004-01-07 16:52:38,844 INFO -
ort2.connections.ExtConnection - Opening ext connection [ssh,
shadow.local, -l, scott, -i, /Users/work/.ssh/id_rsa, cvs, server]
2004-01-07 16:52:39,511 INFO -
m.intellij.util.LaterInvocator -
enterModal:com.intellij.progress.util.SmoothProgressAdapter@2db509
2004-01-07 16:52:40,010 INFO -
ort2.connections.ExtConnection - Opening ext connection [ssh,
shadow.local, -l, scott, -i, /Users/work/.ssh/id_rsa, cvs, server]
2004-01-07 16:52:43,245 INFO -
operations.CvsCommandOperation -
org.netbeans.lib.cvsclient.j: Valid requests expected!
at org.netbeans.lib.cvsclient.s.a(s.java:69)
at org.netbeans.lib.cvsclient.s.a(s.java:59)
at org.netbeans.lib.cvsclient.s.a(s.java:35)
at
com.intellij.cvsSupport2.cvsoperations.CvsCommandOperation$2.a(CvsCommand
Operation.java:0)
at org.netbeans.lib.cvsclient.command.g.a.a(a.java:63)
at
com.intellij.cvsSupport2.cvsoperations.CvsCommandOperation.b(CvsCommandOp
eration.java:90)
at
com.intellij.cvsSupport2.cvsoperations.CvsCommandOperation.a(CvsCommandOp
eration.java:76)
at
com.intellij.cvsSupport2.cvsoperations.CvsOperationOnFiles.a(CvsOperation
OnFiles.java:7)
at
com.intellij.cvsSupport2.cvshandlers.CommandCvsHandler.a(CommandCvsHandle
r.java:43)
at
com.intellij.cvsSupport2.cvshandlers.CvsHandler$2.run(CvsHandler.java:2)
at com.intellij.openapi.application.a.b.runReadAction(b.java:134)
at
com.intellij.cvsSupport2.cvshandlers.CvsHandler.run(CvsHandler.java:24)
at
com.intellij.cvsSupport2.actions.CvsOperationExecutor$4.run(CvsOperationE
xecutor.java:5)
at
com.intellij.progress.ProgressManager.runProcess(ProgressManager.java:30)
at com.intellij.openapi.application.a.b$0.run(b$0.java:4)
2004-01-07 16:52:43,253 INFO -
operations.CvsCommandOperation -

2 comments
Comment actions Permalink

In article <scott-DCB052.17163707012004@host98.intellij.net>,
Scott Ellsworth <scott@alodar.com> wrote:

The version of CVS running on this machine is the 10.3 default:

work% cvs -version
Concurrent Versions System (CVS) 1.10 `Halibut' (client/server)


Does <http://www.intellij.net/tracker/idea/viewSCR?publicId=10300> mean
that the version of cvs on the server also needs to be higher than 1.11?

I suppose I can try to install one easily enough. I do wish the busy
Fink developers would finish up Panther-ready binary installs soon.

Scott

0
Comment actions Permalink

In article <scott-876898.17215007012004@host98.intellij.net>,
Scott Ellsworth <scott@alodar.com> wrote:

I suppose I can try to install one easily enough. I do wish the busy
Fink developers would finish up Panther-ready binary installs soon.


And they have, they have. A recent FAQ on sourceforge mentions that
fink scanpackages would make all better.

Scott

0

Please sign in to leave a comment.