ssh-http-proxy-connect - Secure Shell proxy for HTTP
/usr/lib/ssh/ssh-http-proxy-connect [-h http_proxy_host] [-p http_proxy_port] connect_host connect_port
A proxy command for ssh(1) that uses HTTP CONNECT. Typical use is where connections external to a network are only allowed via a proxy web server.
The following options are supported:
-h http_proxy_host
-p http_proxy_port
The following operands are supported:
http_proxy_host
http_proxy_port
connect_host
connect_port
The recommended way to use a proxy connection command is to configure the ProxyCommand in ssh_config(4) (see Example 1 and Example 2). Example 3 shows how the proxy command can be specified on the command line when running ssh(1).
Example 1 Setting the proxy from the environment
The following example uses ssh-http-proxy-connect in ssh_config(4) when the proxy is set from the environment:
Host playtime.foo.com ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect \ playtime.foo.com 22
Example 2 Overriding proxy environment variables
The following example uses ssh-http-proxy-connect in ssh_config(4) to override (or if not set) proxy environment variables:
Host playtime.foo.com ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect -h webcache \ -p 8080 playtime.foo.com 22
Example 3 Using the command line
The following example uses ssh-http-proxy-connect from the ssh(1) command line:
example$ ssh -o'ProxyCommand="/usr/lib/ssh/ssh-http-proxy-connect \ -h webcache -p 8080 playtime.foo.com 22"' playtime.foo.com
HTTPPROXY
HTTPPROXYPORT
http_proxy
The following exit values are returned:
0
1
See attributes(5) for descriptions of the following attributes:
|
ssh(1), ssh-socks5-proxy-connect(1), ssh_config(4), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |