mirror of
https://git.coolaj86.com/coolaj86/sclient.js
synced 2025-02-22 15:58:04 +00:00
v1.4.1: update README
This commit is contained in:
parent
d095381a40
commit
d390df175a
11
README.md
11
README.md
@ -33,7 +33,7 @@ $ curl http://localhost:3000 -H 'Host: whatever.com'
|
|||||||
Inverse SSH proxy (ssh over https):
|
Inverse SSH proxy (ssh over https):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sclient --ssh user@example.com
|
$ sclient ssh user@example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
(this is the same as a normal SSH Proxy, just easier to type):
|
(this is the same as a normal SSH Proxy, just easier to type):
|
||||||
@ -42,6 +42,12 @@ $ sclient --ssh user@example.com
|
|||||||
$ ssh -o ProxyCommand="sclient %h" user@example.com
|
$ ssh -o ProxyCommand="sclient %h" user@example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Inverse rsync proxy (rsync over https):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sclient rsync user@example.com:path/ path/
|
||||||
|
```
|
||||||
|
|
||||||
A poor man's (or Windows user's) makeshift replacement for `openssl s_client`, `stunnel`, or `socat`.
|
A poor man's (or Windows user's) makeshift replacement for `openssl s_client`, `stunnel`, or `socat`.
|
||||||
|
|
||||||
Install
|
Install
|
||||||
@ -63,13 +69,12 @@ Usage
|
|||||||
=====
|
=====
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sclient [flags] <remote> <local>
|
sclient [flags] [ssh|rsync] <remote> [local]
|
||||||
```
|
```
|
||||||
|
|
||||||
* flags
|
* flags
|
||||||
* `-k, --insecure` ignore invalid TLS (SSL/HTTPS) certificates
|
* `-k, --insecure` ignore invalid TLS (SSL/HTTPS) certificates
|
||||||
* `--servername <string>` spoof SNI (to disable use IP as <remote> and do not use this option)
|
* `--servername <string>` spoof SNI (to disable use IP as <remote> and do not use this option)
|
||||||
* `--ssh proxy` proxy ssh over https (_inverse_ ssh proxy, like stunnel)
|
|
||||||
* remote
|
* remote
|
||||||
* must have servername (i.e. example.com)
|
* must have servername (i.e. example.com)
|
||||||
* port is optional (default is 443)
|
* port is optional (default is 443)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user