Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #369032
    gbsa
    Participant

    I am having problems connecting to cvs on a nat’d host behind a firewall. The host is running OS X Server 10.4.9. If I am on a computer that is behind the firewall, I am able to connect to cvs. However, when I try to set up a ssh tunnel from my home computer, I run into problems.

    To create the tunnel, this is what I am running
    /usr/bin/ssh -v -N -p 22 -c 3des [email protected] -L 2401:internalipaddress:2401

    My .tchsrc file has
    setenv CVS_RSH “ssh”
    setenv CVSROOT “:ext:user@localhost:/usr/local/cvs”

    The result is:
    Cannot access /usr/local/cvs/CVSROOT
    No such file or directory

    My home computer does not have a cvs repository

    In looking at the debugging output, there is no information about the local host trying to connect to the remote one.

    I am able to ssh to the nat’d host via a ssh tunnel
    for the tunnel
    /usr/bin/ssh -v -N -p 22 -c 3des [email protected] -L10022internalipaddress:22

    to ssh
    ssh -p 10022 localhost

    If anyone has any thoughts as to what I am doing wrong? All of the information I have seen about using cvs with an ssh tunnel seems to be in the cvs repository is on the gateway server which has ssh access.

    Thanks

    #369052
    gbsa
    Participant

    I found a solution from the following site:
    http://www.freebsddiary.org/cvs-remote.php

    Created a script called ssh10022
    #!/bin/sh
    ssh -p 10022 “$@”

    modifed ~/.tcshrc
    setenv CVS_RSH “/Users/user/Documents/scripts/ssh10022”

    created a tunnel:
    /usr/bin/ssh -v -N -p 22 -c 3des [email protected] -L10022internalipaddress:22

    Then was able to checkout a project.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed