Not that I'm one of the guru's, but hit this myself a while back and it was a 
pretty straightforward solution.

CVS doesn't 'talk' ssh natively, it was mostly an add-on and as far as I can 
tell all recent versions don't recognize nonstandard ports.  But you're not 
out of luck--ssh is smart.

edit ~/.ssh/config and add:
Host [abbreviation]
Hostname [x.com]
User [myuserid]
Port [myport]

setenv CVS_RSH=ssh
setenv CVS_ROOT=:ext:[abbreviation]:[repos]

cvs ...you know the rest.  There's probably actually a FAQ somewhere on this.

-Jason-




On Friday 01 September 2006 14:44, Anoop wrote:
> Larry Jones wrote:
> > Anoop writes:
> > > Then did a gunzip on the above file - got this
> > > cvs-1.11.20-SunOS-5.8-i386
> > > Then I ran this command.. (there was no readme)
> > > ./cvs-1.11.20-SunOS-5.8-i386
> >
> > Sorry, the README files got lost somewhere along the way.  That file is
> > "the" CVS executable -- it can be a client, a server, or run standalone.
> > All you need to do is rename it to "cvs" (not technically neecessary,
> > but certainly more convenient than typing the original name;
> > alternatively, you can keep the existing name and create a link to it)
> > and move it to a binaries directory (/usr/local/bin or anywhere else you
> > like).
> >
> > -Larry Jones
> >
> > Years from now when I'm successful and happy, ...and he's in
> > prison... I hope I'm not too mature to gloat. -- Calvin
>
> Thanks Larry.
>
> So if this is the executable then its great - I can use this to
> checkout code.
>
> I am trying this now:
>
> I set up my CVSROOT as follows:
>
> weblogic ~ echo $CVSROOT
>
> :pserver:[EMAIL PROTECTED]:/usr/local/cvsroot
>
> weblogic ~ cvs login
> Logging in to :pserver:[EMAIL PROTECTED]:2401/usr/local/cvsroot
> CVS password:
> cvs [login aborted]: connect to x.com:2401 failed: Connection refused
>
> Normally when we connect, we connect using this string:
> :ssh:[EMAIL PROTECTED]:/usr/local/cvsroot
>
> But when I tried using ssh instead of pserver -  I get errors: ssh not
> recognized.
>
> So I am thinking the port is wrong: 2401.
>
> Any thoughts?
>
> Thanks again,
> Anoop
>
> Thanks,
> Anoop
>
> _______________________________________________
> info-cvs mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/info-cvs



_______________________________________________
info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs

Reply via email to