summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/ssh-http-proxy-connect.1
blob: 51468d54d305a8ee392a67e371cad33120dfa9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
'\" te
.\" Copyright (c) 2001, 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-HTTP-PROXY-CONNECT 1 "Oct 24, 2001"
.SH NAME
ssh-http-proxy-connect \- Secure Shell proxy for HTTP
.SH SYNOPSIS
.LP
.nf
\fB/usr/lib/ssh/ssh-http-proxy-connect\fR [\fB-h\fR \fIhttp_proxy_host\fR]
     [\fB-p\fR \fIhttp_proxy_port\fR] \fIconnect_host\fR \fIconnect_port\fR
.fi

.SH DESCRIPTION
.sp
.LP
A proxy command for \fBssh\fR(1) that uses HTTP CONNECT. Typical use is where
connections external to a network are only allowed via a proxy web server.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-h\fR \fIhttp_proxy_host\fR\fR
.ad
.RS 22n
Specifies the proxy web server through which to connect. Overrides the
\fBHTTPPROXY\fR and \fBhttp_proxy\fR environment variables if they are set.
.RE

.sp
.ne 2
.na
\fB\fB-p\fR \fIhttp_proxy_port\fR\fR
.ad
.RS 22n
Specifies the port on which the proxy web server runs. If not specified, port
80 is assumed. Overrides the \fBHTTPPROXYPORT\fR and \fBhttp_proxy\fR
environment variables if they are set.
.RE

.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIhttp_proxy_host\fR\fR
.ad
.RS 19n
The host name or IP address (IPv4 or IPv6) of the proxy.
.RE

.sp
.ne 2
.na
\fB\fIhttp_proxy_port\fR\fR
.ad
.RS 19n
The numeric port number to connect to on \fIhttp_proxy_host\fR.
.RE

.sp
.ne 2
.na
\fB\fIconnect_host\fR\fR
.ad
.RS 19n
The name of the remote host to which the proxy web server is to connect you.
.RE

.sp
.ne 2
.na
\fB\fIconnect_port\fR\fR
.ad
.RS 19n
The numeric port number of the proxy web server to connect you to on
\fIhttp_proxy_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-http-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-http-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-http-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-http-proxy-connect -h webcache \e
        -p 8080 playtime.foo.com 22\fR
.fi
.in -2
.sp

.LP
\fBExample 3 \fRUsing the command line
.sp
.LP
The following example uses \fBssh-http-proxy-connect\fR from the \fBssh\fR(1)
command line:

.sp
.in +2
.nf
example$ \fBssh -o'ProxyCommand="/usr/lib/ssh/ssh-http-proxy-connect \e
    -h webcache -p 8080 playtime.foo.com 22"' playtime.foo.com\fR
.fi
.in -2
.sp

.SH ENVIRONMENT VARIABLES
.sp
.ne 2
.na
\fB\fBHTTPPROXY\fR\fR
.ad
.RS 17n
Takes the \fIhttp_proxy_host\fR operand to specify the default proxy host.
Overrides \fBhttp_proxy\fR if both are set.
.RE

.sp
.ne 2
.na
\fB\fBHTTPPROXYPORT\fR\fR
.ad
.RS 17n
Takes the \fIhttp_proxy_port\fR operand to specify the default proxy port.
Ignored if \fBHTTPPROXY\fR is not set.
.RE

.sp
.ne 2
.na
\fB\fBhttp_proxy\fR\fR
.ad
.RS 17n
\fBURL\fR format for specifying proxy host and port.
.RE

.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR \fR
.ad
.RS 6n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB1\fR \fR
.ad
.RS 6n
An error occurred.
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Stable
.TE

.SH SEE ALSO
.sp
.LP
\fBssh\fR(1), \fBssh-socks5-proxy-connect\fR(1), \fBssh_config\fR(4),
\fBattributes\fR(5)