Mail Archives: cygwin/2003/05/22/05:46:11
I don't know if cvs itself supports a proxy, but CVS_RSH can point to a
program that supports a proxy. You just have to make sure the connection is
8-bit clean. (If it is not 8-bit clean you will run into what seems to be
random errors.) For example, if you wish to use cvs with 'ssh' you would
point it to a script like:
$ echo '#!/bin/bash' >ssh-noescape
$ echo 'exec ssh -T -e none "$@"' >> ssh-noescape
$ chmod ugo+x ssh-noescape
$ export CVS_RSH=`pwd`/ssh-noescape
$ cvs -z3 -d:ext:username AT hostname:pathname checkout modulename
I used 'ssh' in this example, because many companies now days are leaving
port 22 as an open port to connect outside their firewalls.
I'm actually quite surprised, there does't seem to be an "open source"
version of sock5. So if you need proxy tools to connect you might need to
hop through another machine in your internal network which has the proxy
tools installed. i.e.
$ echo '#!/bin/bash' > proxy-ssh-noescape
$ echo 'exec ssh -T -e none unixhost prsh "$@"' >> proxy-ssh-noescape
where unixhost is the name of a machine with a utility like "prsh". i.e.
rsh compiled with sock5 support.
Yet another option is you download something like connect.exe and use it to
connect the remote port to a local port. i.e.
connect.exe -p 22022 -S user AT foo DOT com hostname 22
Then you would use a command like:
$ echo '#!/bin/bash' >ssh-noescape-connect
$ echo 'exec ssh -p 22022 -T -e none "$@"' >> ssh-noescape-connect
$ chmod ugo+x ssh-noescape-connect
$ export CVS_RSH=`pwd`/ssh-noescape-connect
$ cvs -z3 -d:ext:username AT hostname:pathname checkout modulename
$ export CVS_RSH=`pwd`/ssh-noescape-connect
$ cvs -z3 -d:ext:username AT localhost:pathname checkout modulename
Bill
----- Original Message -----
From: "Lafond, Kenneth G" <kenneth DOT g DOT lafond AT intel DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Wednesday, May 21, 2003 9:27 PM
Subject: CVS through a proxy
> Anyone know if the version of CVS included in cygwin works through a
proxy? I don't see anything regarding that on the cygwin website or FAQ.
If it's not possible, I'll just have to checkout from home.
>
> Thanks,
> Kenneth G Lafond
>
> There are 10 kinds of people in this world: Those who understand binary,
and those who don't.
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -