2 .\" Copyright (c) 2001, 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-HTTP-PROXY-CONNECT 1 "Oct 24, 2001"
8 ssh-http-proxy-connect \- Secure Shell proxy for HTTP
12 \fB/usr/lib/ssh/ssh-http-proxy-connect\fR [\fB-h\fR \fIhttp_proxy_host\fR]
13 [\fB-p\fR \fIhttp_proxy_port\fR] \fIconnect_host\fR \fIconnect_port\fR
19 A proxy command for \fBssh\fR(1) that uses HTTP CONNECT. Typical use is where
20 connections external to a network are only allowed via a proxy web server.
24 The following options are supported:
28 \fB\fB-h\fR \fIhttp_proxy_host\fR\fR
31 Specifies the proxy web server through which to connect. Overrides the
32 \fBHTTPPROXY\fR and \fBhttp_proxy\fR environment variables if they are set.
38 \fB\fB-p\fR \fIhttp_proxy_port\fR\fR
41 Specifies the port on which the proxy web server runs. If not specified, port
42 80 is assumed. Overrides the \fBHTTPPROXYPORT\fR and \fBhttp_proxy\fR
43 environment variables if they are set.
49 The following operands are supported:
53 \fB\fIhttp_proxy_host\fR\fR
56 The host name or IP address (IPv4 or IPv6) of the proxy.
62 \fB\fIhttp_proxy_port\fR\fR
65 The numeric port number to connect to on \fIhttp_proxy_host\fR.
71 \fB\fIconnect_host\fR\fR
74 The name of the remote host to which the proxy web server is to connect you.
80 \fB\fIconnect_port\fR\fR
83 The numeric port number of the proxy web server to connect you to on
84 \fIhttp_proxy_host\fR.
90 The recommended way to use a proxy connection command is to configure the
91 \fBProxyCommand\fR in \fBssh_config\fR(4) (see Example 1 and Example 2).
92 Example 3 shows how the proxy command can be specified on the command line when
95 \fBExample 1 \fRSetting the proxy from the environment
98 The following example uses \fBssh-http-proxy-connect\fR in \fBssh_config\fR(4)
99 when the proxy is set from the environment:
104 \fBHost playtime.foo.com
105 ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect \e
106 playtime.foo.com 22\fR
112 \fBExample 2 \fROverriding proxy environment variables
115 The following example uses \fBssh-http-proxy-connect\fR in \fBssh_config\fR(4)
116 to override (or if not set) proxy environment variables:
121 \fBHost playtime.foo.com
122 ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect -h webcache \e
123 -p 8080 playtime.foo.com 22\fR
129 \fBExample 3 \fRUsing the command line
132 The following example uses \fBssh-http-proxy-connect\fR from the \fBssh\fR(1)
138 example$ \fBssh -o'ProxyCommand="/usr/lib/ssh/ssh-http-proxy-connect \e
139 -h webcache -p 8080 playtime.foo.com 22"' playtime.foo.com\fR
144 .SH ENVIRONMENT VARIABLES
148 \fB\fBHTTPPROXY\fR\fR
151 Takes the \fIhttp_proxy_host\fR operand to specify the default proxy host.
152 Overrides \fBhttp_proxy\fR if both are set.
158 \fB\fBHTTPPROXYPORT\fR\fR
161 Takes the \fIhttp_proxy_port\fR operand to specify the default proxy port.
162 Ignored if \fBHTTPPROXY\fR is not set.
168 \fB\fBhttp_proxy\fR\fR
171 \fBURL\fR format for specifying proxy host and port.
177 The following exit values are returned:
184 Successful completion.
199 See \fBattributes\fR(5) for descriptions of the following attributes:
207 ATTRIBUTE TYPE ATTRIBUTE VALUE
209 Interface Stability Stable
215 \fBssh\fR(1), \fBssh-socks5-proxy-connect\fR(1), \fBssh_config\fR(4),