[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 |
-----BEGIN PGP SIGNED MESSAGE-----
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,
Yes.
> 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: http://linuxgazette.net/115/chirico.html
(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 -------
Host desktop.my.domain
# connections to my localhost:20022 will
# forward to the SSH port on the
# cvs-server.my.domain and port 20080 will
# let met connect to the ViewVC running on it.
LocalForward 20022 cvs-server.my.domain:22
LocalForward 20080 cvs-server.my.domain:80
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 desktop.my.domain
CVS_RSH=ssh; export CVS_RSH
# Now you can use normal CVS operations from home.
cvs -d :ext:cvs-server.host/work/repository 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 www.viewvc.org) on a web server running on that host.
Enjoy!
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)
iD8DBQFEIZEZCg7APGsDnFERAuhGAKDp7OVf1/SWkvIsDCai841o4AzQcwCeMOOx
YkB5CVJEvbtoJQVYysJ0yPo=
=zBSc
-----END PGP SIGNATURE-----