Bug#379736: invalid reference to nc's proxy feature
tags 379736 patch
quit
I also haven't been able to locate any version of netcat which supports
this feature. The attached patch therefore updates the manpage with an
equivalent example using socat, which is definitely available.
diff -ur openssh-4.3p2.orig/ssh_config.0 openssh-4.3p2/ssh_config.0
--- openssh-4.3p2.orig/ssh_config.0 2006-02-10 18:07:39.000000000 -0600
+++ openssh-4.3p2/ssh_config.0 2006-12-01 22:13:42.000000000 -0600
@@ -406,11 +406,11 @@
tirely. Note that CheckHostIP is not available for connects with
a proxy command.
- This directive is useful in conjunction with nc(1) and its proxy
- support. For example, the following directive would connect via
- an HTTP proxy at 192.0.2.0:
+ This directive is useful in conjunction with socat(1) and its
+ proxy support. For example, the following directive would connect
+ via a HTTP proxy at 192.0.2.0:
- ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
+ ProxyCommand /usr/bin/socat - PROXY:192.0.2.0:%h:%p,proxyport=8080
PubkeyAuthentication
Specifies whether to try public key authentication. The argument
diff -ur openssh-4.3p2.orig/ssh_config.5 openssh-4.3p2/ssh_config.5
--- openssh-4.3p2.orig/ssh_config.5 2006-12-01 21:53:45.000000000 -0600
+++ openssh-4.3p2/ssh_config.5 2006-12-01 22:14:00.000000000 -0600
@@ -720,12 +720,12 @@
is not available for connects with a proxy command.
.Pp
This directive is useful in conjunction with
-.Xr nc 1
+.Xr socat 1
and its proxy support.
-For example, the following directive would connect via an HTTP proxy at
+For example, the following directive would connect via a HTTP proxy at
192.0.2.0:
.Bd -literal -offset 3n
-ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
+ProxyCommand /usr/bin/socat - PROXY:192.0.2.0:%h:%p,proxyport=8080
.Ed
.It Cm PubkeyAuthentication
Specifies whether to try public key authentication.
Reply to: