[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing a firewalled CVS server via 'un-firewalled' host

From: Mark D. Baushke
Subject: Re: Accessing a firewalled CVS server via 'un-firewalled' host
Date: Wed, 22 Mar 2006 10:02:02 -0800

Hash: SHA1

address@hidden writes:

> Hi all
> I used to be able to access my work's CVS server from home, but it's
> recently been firewalled. I can't even SSH to it. I can, however, SSH
> to my desktop machine that is allowed to use the CVS server. In
> principle I'm allowed to access the CVS server from home, but in
> practice it has been made difficult (and IT haven't had the foresight
> to enable SSH connections to the server).

You really should get them to fix it to avoid any possibility that you
are doing things against your company policy.

> This isn't a question about using CVS over SSH that needs an CVS_RSH
> answer :-)

Actually, no, it needs an ssh configuration answer.

> What I'd like to do is be able to co, commit etc. from my home machine,
> by talking to the CVS server via my work desktop machine. I think this
> must be possible by using SSH tunelling or something, 


> but I'm not experienced enough to know how to achieve what I want. Can
> someone point me in the right direction?

You may details of interest here:
(there are lots of other places, google just found this one first.)

Assuming you are using OpenSSH, you may fix this in your
$HOME/.ssh/config file. Choose a port like 20022 or some such.

# ------- cut here -------
        # connections to my localhost:20022 will
        # forward to the SSH port on the
        # and port 20080 will
        # let met connect to the ViewVC running on it.
        LocalForward 20022
        LocalForward 20080
        ForwardAgent yes

Host cvs-server.home.domain
        HostName localhost
        User work-username
        Port 20022

Host www-cvs-server.home.domain
        HostName localhost
        User work-username
        Port 20080
# ------- cut here -------

# You only need to do this once
ssh -N -f -q
CVS_RSH=ssh; export CVS_RSH

# Now you can use normal CVS operations from home.
cvs -d checkout modulename

A visit to http://www-cvs-server.home.domain/cgi-bin/viewvc.cgi/
might now let you browse the repository if you are running viewvc
(see on a web server running on that host.

        -- Mark
Version: GnuPG v1.4.2.2 (FreeBSD)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]