summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/ssh-socks5-proxy-connect.1
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-03-14 14:05:30 -0400
committerRichard Lowe <richlowe@richlowe.net>2011-03-14 14:05:30 -0400
commitc10c16dec587a0662068f6e2991c29ed3a9db943 (patch)
treef414286f4bba41d75683ed4fbbaa6bfa4bf7fabd /usr/src/man/man1/ssh-socks5-proxy-connect.1
parent68caef18a23a498d9e3017b983562c0f4fd8ab23 (diff)
downloadillumos-joyent-c10c16dec587a0662068f6e2991c29ed3a9db943.tar.gz
243 system manual pages should live with the software
Reviewed by: garrett@nexenta.com Reviewed by: gwr@nexenta.com Reviewed by: trisk@opensolaris.org Approved by: gwr@nexenta.com --HG-- extra : rebase_source : 0c599d0bec0dc8865fbba67721a7a6cd6b1feefb
Diffstat (limited to 'usr/src/man/man1/ssh-socks5-proxy-connect.1')
-rw-r--r--usr/src/man/man1/ssh-socks5-proxy-connect.1231
1 files changed, 231 insertions, 0 deletions
diff --git a/usr/src/man/man1/ssh-socks5-proxy-connect.1 b/usr/src/man/man1/ssh-socks5-proxy-connect.1
new file mode 100644
index 0000000000..58dccc3871
--- /dev/null
+++ b/usr/src/man/man1/ssh-socks5-proxy-connect.1
@@ -0,0 +1,231 @@
+'\" te
+.\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
+.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
+.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
+.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
+.TH ssh-socks5-proxy-connect 1 "30 Oct 2002" "SunOS 5.11" "User Commands"
+.SH NAME
+ssh-socks5-proxy-connect \- Secure Shell proxy for SOCKS5
+.SH SYNOPSIS
+.LP
+.nf
+\fB/usr/lib/ssh/ssh-socks5-proxy-connect\fR
+ [\fB-h\fR \fIsocks5_proxy_host\fR]
+ [\fB-p\fR \fIsocks5_proxy_port\fR] \fIconnect_host\fR \fIconnect_port\fR
+.fi
+
+.SH DESCRIPTION
+.sp
+.LP
+A proxy command for \fBssh\fR(1) that uses SOCKS5 (RFC 1928). Typical use is
+where connections external to a network are only allowed via a socks gateway
+server.
+.sp
+.LP
+This proxy command does not provide any of the SOCKS5 authentication mechanisms
+defined in RFC 1928. Only anonymous connections are possible.
+.SH OPTIONS
+.sp
+.LP
+The following options are supported:
+.sp
+.ne 2
+.mk
+.na
+\fB\fB-h\fR \fIsocks5_proxy_host\fR\fR
+.ad
+.RS 24n
+.rt
+Specifies the proxy web server through which to connect. Overrides the
+\fBSOCKS5_SERVER\fR environment variable.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fB-p\fR \fIsocks5_proxy_port\fR\fR
+.ad
+.RS 24n
+.rt
+Specifies the port on which the proxy web server runs. If not specified, port
+80 is assumed. Overrides the \fBSOCKS5_PORT\fR environment variable.
+.RE
+
+.SH OPERANDS
+.sp
+.LP
+The following operands are supported:
+.sp
+.ne 2
+.mk
+.na
+\fB\fIsocks5_proxy_host\fR\fR
+.ad
+.RS 21n
+.rt
+The host name or IP address (IPv4 or IPv6) of the proxy.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fIsocks5_proxy_port\fR\fR
+.ad
+.RS 21n
+.rt
+The numeric port number to connect to on \fIsocks5_proxy_host\fR.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fIconnect_host\fR\fR
+.ad
+.RS 21n
+.rt
+The name of the remote host to which the socks gateway is to connect you.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fIconnect_port\fR\fR
+.ad
+.RS 21n
+.rt
+The numeric port number of the socks gateway to connect you to on
+\fIconnect_host\fR.
+.RE
+
+.SH EXAMPLES
+.sp
+.LP
+The recommended way to use a proxy connection command is to configure the
+\fBProxyCommand\fR in \fBssh_config\fR(4) (see Example 1 and Example 2).
+Example 3 shows how the proxy command can be specified on the command line when
+running \fBssh\fR(1).
+.LP
+\fBExample 1 \fRSetting the proxy from the environment
+.sp
+.LP
+The following example uses \fBssh-socks5-proxy-connect\fR in
+\fBssh_config\fR(4) when the proxy is set from the environment:
+
+.sp
+.in +2
+.nf
+\fBHost playtime.foo.com
+ ProxyCommand /usr/lib/ssh/ssh-socks5-proxy-connect \e
+ playtime.foo.com 22\fR
+.fi
+.in -2
+.sp
+
+.LP
+\fBExample 2 \fROverriding proxy environment variables
+.sp
+.LP
+The following example uses \fBssh-socks5-proxy-connect\fR in
+\fBssh_config\fR(4) to override (or if not set) proxy environment variables:
+
+.sp
+.in +2
+.nf
+\fBHost playtime.foo.com
+ ProxyCommand /usr/lib/ssh/ssh-socks5-proxy-connect -h socks-gw \e
+ -p 1080 playtime.foo.com 22\fR
+.fi
+.in -2
+.sp
+
+.LP
+\fBExample 3 \fRUsing the command line
+.sp
+.LP
+The following example uses \fBssh-socks5-proxy-connect\fR from the \fBssh\fR(1)
+command line:
+
+.sp
+.in +2
+.nf
+example$ \fBssh -o'ProxyCommand=/usr/lib/ssh/ssh-socks5-proxy-connect \e
+ -h socks-gw -p 1080 playtime.foo.com 22' playtime.foo.com\fR
+.fi
+.in -2
+.sp
+
+.SH ENVIRONMENT VARIABLES
+.sp
+.ne 2
+.mk
+.na
+\fB\fBSOCKS5_SERVER\fR\fR
+.ad
+.RS 17n
+.rt
+Takes \fIsocks5_proxy_host\fR operand to specify the default proxy host.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fBSOCKS5_PORT\fR\fR
+.ad
+.RS 17n
+.rt
+Takes \fIsocks5_proxy_port \fR operand to specify the default proxy port.
+.RE
+
+.SH EXIT STATUS
+.sp
+.LP
+The following exit values are returned:
+.sp
+.ne 2
+.mk
+.na
+\fB\fB0\fR \fR
+.ad
+.RS 6n
+.rt
+Successful completion.
+.RE
+
+.sp
+.ne 2
+.mk
+.na
+\fB\fB1\fR \fR
+.ad
+.RS 6n
+.rt
+An error occurred.
+.RE
+
+.SH ATTRIBUTES
+.sp
+.LP
+See \fBattributes\fR(5) for descriptions of the following attributes:
+.sp
+
+.sp
+.TS
+tab() box;
+cw(2.75i) |cw(2.75i)
+lw(2.75i) |lw(2.75i)
+.
+ATTRIBUTE TYPEATTRIBUTE VALUE
+_
+Interface StabilityStable
+.TE
+
+.SH SEE ALSO
+.sp
+.LP
+\fBssh\fR(1), \fBssh-http-proxy-connect\fR(1), \fBssh_config\fR(4),
+\fBattributes\fR(5)