From 0361e5762dbcfa2bb787b271ef793a3b19318554 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Sep 2018 01:51:42 -0600 Subject: [PATCH] v1.3.0: add inverse ssh proxy --- README.md | 15 ++++++++--- bin/sclient.js | 72 +++++++++++++++++++++++++++++++++++++++++++------- index.js | 26 +++++++++++++----- package.json | 2 +- 4 files changed, 93 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 532a1ee..842c8ae 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,9 @@ sclient [flags] ``` * flags - * -k, --insecure ignore invalid TLS (SSL/HTTPS) certificates - * --servername spoof SNI (to disable use IP as <remote> and do not use this option) + * `-k, --insecure` ignore invalid TLS (SSL/HTTPS) certificates + * `--servername ` 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 * must have servername (i.e. example.com) * port is optional (default is 443) @@ -85,7 +86,7 @@ Ignore a bad TLS/SSL/HTTPS certificate and connect anyway. sclient -k badtls.telebit.cloud:443 localhost:3000 ``` -Reading from stdin +### Reading from stdin ```bash sclient telebit.cloud:443 - @@ -95,7 +96,13 @@ sclient telebit.cloud:443 - sclient telebit.cloud:443 -