Re: How to use CVS from Eclipse without SSH?



John wrote:

> In Eclipse I have to have a CVSROOT that includes a hostname so it can
> use SSH. Why can't I just specify a path:
>
> I want this:
>
> $ cvs -d /opt/cvsroot checkout blah
>
> Not this:
>
> $ cvs -d :ext:localhost:/opt/cvsroot checkout blah
>
> Why? Because I shouldn't need ssh and when I'm on a windows box I don't
> always have an ssh server installed.

I have solved it (under Linux, but an analogous solution should also be
possible on Windows, at least with cygwin) like this:

1. Specifiy the "ext" connection type in the CVS repository settings.
2. Enter the repository path as it appears in your local filesystem,
e.g. /opt/cvsroot.
3. Create a shell script like this:

#!/bin/sh
shift 4 # Just throw away the first four arguments
exec cvs ${1+"$@"} # call cvs with the remaining arguments

make it executable and save it, e.g. as extcvs.sh

4. In the eclipse preferences go to Team->CVS->Ext Connection Method and
enter the full path of extcvs.sh in the CVS_RSH input field.

That's it. Works like a charm for me.

--
-----------------------------------------------------------------------
Dr. Uwe Seimet http://www.seimet.de
.



Relevant Pages

  • Re: Question on CVS Branches
    ... >> Are you using CVS over SSH or in pserver mode? ... > Is it possible to specify the password on the command line with cvs login (it ... cvs server: Updating src/bin ... > to create an SSH key and copy it over to the server?? ...
    (freebsd-questions)
  • Re: Other CVS on VMS problems
    ... to the CVS/SSH question though, I did specify the SSH command, without the ... when I did the following (included in my CVS last cvs ... differ since we're running the same version of SSH? ...
    (comp.os.vms)
  • Re: CVS over SSH hangs
    ... I am experiencing problems using ssh as a shell for CVS. ... There is a small hang during connection start up: ... > (which is what CVS is doing) you can see the CPU usage go to 100%. ...
    (comp.security.ssh)
  • Re: CVS over SSH hangs
    ... When I try to checkout a large project from the localhost with ssh the ... I assume the problem is the ancient version of ssh I have installed on the localhost: ... > debug1: Seeding random number generator ... CVS transfer completes, but the session just hangs there as though there ...
    (comp.security.ssh)
  • Re: SSH and CVS
    ... I would like to use CVS (Concurent Versioning ... > in client/server mode, via SSH. ... OK, first, try working with Putty instead of VanDyke's ...
    (comp.security.ssh)