Skip to content

Commit ece2820

Browse files
committed
update readme, add license
1 parent 02d2cd4 commit ece2820

File tree

2 files changed

+73
-7
lines changed

2 files changed

+73
-7
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 Digineo GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,71 @@
11
HTTP over SSH
22
=============
33

4-
This dynamic HTTP proxy tunnels your HTTP requests through SSH connections using public key authentication.
5-
It is not recommended for production use.
4+
This dynamic HTTP proxy tunnels your HTTP requests through SSH connections
5+
using public key authentication. The intention to develop this program is
6+
the requirement of polling [Prometheus exporters][promexp] through SSH.
67

7-
The intention to develope this program is the requirement of polling [Prometheus exporters](https://prometheus.io/docs/instrumenting/exporters/) through SSH.
8+
> **It is not recommended for production use, yet.**
9+
10+
[promexp]: https://prometheus.io/docs/instrumenting/exporters/
811

912
## Syntax
1013

1114
http://<proxy-address>/<ssh-address>/<destination-host>/<destination-path>
1215

1316

14-
## Example
17+
## Usage
18+
19+
After installation (see below), start the proxy on `localhost:8000`:
20+
21+
```console
22+
$ http-over-ssh -listen 127.0.0.1:8000
23+
```
24+
25+
For a full list of options run `http-over-ssh -help`.
26+
27+
If you want to fetch http://example.com/index.html via `root@jumphost.tld:22`,
28+
just fetch this URL instead:
29+
30+
http://localhost:8080/root@jumphost.tld:22/example.com:80/index.html
31+
32+
For `<ssh-address>`, the defaults for username and port are "root" and 22.
33+
The following fetch URL is hence equivalent:
34+
35+
http://localhost:8080/jumphost.tld/example.com:80/index.html
36+
37+
For the `<destination-host>` is currently only HTTP allowed. This might
38+
change in the future, but requires a change in the fetch URL syntax.
1539

16-
Your proxy is reachable at `localhost:8000` and you want to fetch http://example.com/index.html via `jumphost.tld:22`.
17-
Then just fetch:
40+
Parsing IPv6 addresses for both `<ssh-address>` and `<destination-host>`
41+
is currently buggy as well.
1842

19-
http://localhost:8080/jumphost.tld:22/example.com:80/index.html
43+
Please [open an issue][issues] if you need one those features.
2044

45+
[issues]: https://github.com/digineo/http-over-ssh/issues
46+
47+
48+
## Installation
49+
50+
If you have the Go toolchain installed, a simple
51+
52+
```console
53+
$ go get github.com/digineo/http-over-ssh
54+
```
55+
56+
will place a `http-over-ssh` binary in `$GOPATH/bin/`.
57+
58+
Alternatively, you may download a pre-built binary from the Github
59+
[release page][releases] and extract the binary into your `$PATH`.
60+
61+
[releases]: https://github.com/digineo/http-over-ssh/releases
2162

2263
## Next steps
2364

2465
- [ ] stability improvements
2566
- [ ] clean up idle ssh connections
2667
- [ ] support for unix sockets
68+
69+
## License
70+
71+
MIT Licence. Copyright 2018, Digineo GmbH

0 commit comments

Comments
 (0)