2 .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH SSH-SOCKS5-PROXY-CONNECT 1 "Oct 30, 2002"
8 ssh-socks5-proxy-connect \- Secure Shell proxy for SOCKS5
12 \fB/usr/lib/ssh/ssh-socks5-proxy-connect\fR
13 [\fB-h\fR \fIsocks5_proxy_host\fR]
14 [\fB-p\fR \fIsocks5_proxy_port\fR] \fIconnect_host\fR \fIconnect_port\fR
20 A proxy command for \fBssh\fR(1) that uses SOCKS5 (RFC 1928). Typical use is
21 where connections external to a network are only allowed via a socks gateway
25 This proxy command does not provide any of the SOCKS5 authentication mechanisms
26 defined in RFC 1928. Only anonymous connections are possible.
30 The following options are supported:
34 \fB\fB-h\fR \fIsocks5_proxy_host\fR\fR
37 Specifies the proxy web server through which to connect. Overrides the
38 \fBSOCKS5_SERVER\fR environment variable.
44 \fB\fB-p\fR \fIsocks5_proxy_port\fR\fR
47 Specifies the port on which the proxy web server runs. If not specified, port
48 80 is assumed. Overrides the \fBSOCKS5_PORT\fR environment variable.
54 The following operands are supported:
58 \fB\fIsocks5_proxy_host\fR\fR
61 The host name or IP address (IPv4 or IPv6) of the proxy.
67 \fB\fIsocks5_proxy_port\fR\fR
70 The numeric port number to connect to on \fIsocks5_proxy_host\fR.
76 \fB\fIconnect_host\fR\fR
79 The name of the remote host to which the socks gateway is to connect you.
85 \fB\fIconnect_port\fR\fR
88 The numeric port number of the socks gateway to connect you to on
95 The recommended way to use a proxy connection command is to configure the
96 \fBProxyCommand\fR in \fBssh_config\fR(4) (see Example 1 and Example 2).
97 Example 3 shows how the proxy command can be specified on the command line when
100 \fBExample 1 \fRSetting the proxy from the environment
103 The following example uses \fBssh-socks5-proxy-connect\fR in
104 \fBssh_config\fR(4) when the proxy is set from the environment:
109 \fBHost playtime.foo.com
110 ProxyCommand /usr/lib/ssh/ssh-socks5-proxy-connect \e
111 playtime.foo.com 22\fR
117 \fBExample 2 \fROverriding proxy environment variables
120 The following example uses \fBssh-socks5-proxy-connect\fR in
121 \fBssh_config\fR(4) to override (or if not set) proxy environment variables:
126 \fBHost playtime.foo.com
127 ProxyCommand /usr/lib/ssh/ssh-socks5-proxy-connect -h socks-gw \e
128 -p 1080 playtime.foo.com 22\fR
134 \fBExample 3 \fRUsing the command line
137 The following example uses \fBssh-socks5-proxy-connect\fR from the \fBssh\fR(1)
143 example$ \fBssh -o'ProxyCommand=/usr/lib/ssh/ssh-socks5-proxy-connect \e
144 -h socks-gw -p 1080 playtime.foo.com 22' playtime.foo.com\fR
149 .SH ENVIRONMENT VARIABLES
153 \fB\fBSOCKS5_SERVER\fR\fR
156 Takes \fIsocks5_proxy_host\fR operand to specify the default proxy host.
162 \fB\fBSOCKS5_PORT\fR\fR
165 Takes \fIsocks5_proxy_port \fR operand to specify the default proxy port.
171 The following exit values are returned:
178 Successful completion.
193 See \fBattributes\fR(5) for descriptions of the following attributes:
201 ATTRIBUTE TYPE ATTRIBUTE VALUE
203 Interface Stability Stable
209 \fBssh\fR(1), \fBssh-http-proxy-connect\fR(1), \fBssh_config\fR(4),