Crates.io | hconnect |
lib.rs | hconnect |
version | 0.2.0 |
source | src |
created_at | 2022-03-07 13:46:35.186994 |
updated_at | 2023-12-17 11:24:00.873822 |
description | A tool to establish a TCP connection to a host behind a proxy |
homepage | https://github.com/kiron1/hconnect |
repository | https://github.com/kiron1/hconnect |
max_upload_size | |
id | 545046 |
size | 49,589 |
hconnect
can establish a TCP connection to a host behind a proxy. It is
similar to corkscrew
or nc -Xconnect -x...
, but can
authenticate against a proxy using the basic or negotiate
via Kerberos (using the GSS-API Linux and macOS or
SSPI on Windows) authorization method
The following command will establish a TCP connection with the host behind the
proxy proxy.exmaple.com
listening on port 8080
. When the proxy responds with
407 Proxy Authentication Required, when the file ~/.netrc
exists hconnect
will consult it for an entry for the given post host. If no such entry can be
found or the file does not exists, hconnect
will try to generate a Kerberos
token.
hconnect --proxy proxy.example.com:8080 %h:%p
Place the following fragment in your ~/.ssh/config
file:
ProxyCommand hconnect --proxy proxy.example.com:8080 %h:%p
This source code is under the MIT license with the exceptions mentioned in "Third party source code in this repository".