summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authorjmc <>2005-05-20 10:55:09 +0000
committerjmc <>2005-05-20 10:55:09 +0000
commit296b05c05bf89b6af555117787f6627f7930107b (patch)
tree061e4f0f8743126baffd27749b03382ac3326b04 /src/usr.bin/nc/nc.1
parent947c7cbd07e8b5a4e7a6dc717314407764e5e1fb (diff)
downloadopenbsd-296b05c05bf89b6af555117787f6627f7930107b.tar.gz
openbsd-296b05c05bf89b6af555117787f6627f7930107b.tar.bz2
openbsd-296b05c05bf89b6af555117787f6627f7930107b.zip
cross reference proxy example to relevant ssh option;
originally from ray; help/ok djm@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r--src/usr.bin/nc/nc.114
1 files changed, 11 insertions, 3 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index 64a09ec7f2..c82e6efe4a 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.37 2005/02/21 10:56:22 jmc Exp $ 1.\" $OpenBSD: nc.1,v 1.38 2005/05/20 10:55:09 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -375,11 +375,19 @@ Create and listen on a Unix Domain Socket:
375.Dl $ nc -lU /var/tmp/dsocket 375.Dl $ nc -lU /var/tmp/dsocket
376.Pp 376.Pp
377Connect to port 42 of host.example.com via an HTTP proxy at 10.2.3.4, 377Connect to port 42 of host.example.com via an HTTP proxy at 10.2.3.4,
378port 8080: 378port 8080.
379This example could also be used by
380.Xr ssh 1 ;
381see the
382.Cm ProxyCommand
383directive in
384.Xr ssh_config 5
385for more information.
379.Pp 386.Pp
380.Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42 387.Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42
381.Sh SEE ALSO 388.Sh SEE ALSO
382.Xr cat 1 389.Xr cat 1 ,
390.Xr ssh 1
383.Sh AUTHORS 391.Sh AUTHORS
384Original implementation by *Hobbit* 392Original implementation by *Hobbit*
385.Aq hobbit@avian.org . 393.Aq hobbit@avian.org .