From 94117c7edb92305f9f7814c935f9d31041d81c8d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 14:12:23 -0600 Subject: [PATCH] add missing -servername to ssh over https docs --- README.md | 6 +++--- bin/telebitd.js | 2 +- lib/html/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 453ef76..c560a58 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Connect to your device by any of the following means: SSH+HTTPS ssh+https://lucky-duck-37.telebit.cloud:443 - ex: ssh -o ProxyCommand='openssl s_client -connect %h:%p -quiet' lucky-duck-37.telebit.cloud -p 443 + ex: ssh -o ProxyCommand='openssl s_client -connect %h:%p -servername %h -quiet' lucky-duck-37.telebit.cloud -p 443 SSH ssh://ssh.telebit.cloud:32852 @@ -210,12 +210,12 @@ telebit save # save http and tcp configuration change SSH over HTTPS ``` -ssh -o ProxyCommand='openssl s_client -connect %h:443 -quiet' slippery-bobcat-39.telebit.cloud +ssh -o ProxyCommand='openssl s_client -connect %h:443 -servername %h -quiet' lucky-duck-42.telebit.cloud ``` SSH over non-standard port ``` -ssh slippery-bobcat-39.telebit.cloud -p 3031 +ssh lucky-duck-42.telebit.cloud -p 3031 ``` Daemon Usage diff --git a/bin/telebitd.js b/bin/telebitd.js index 2cea44d..88f7f0c 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -524,7 +524,7 @@ function connectTunnel() { } console.info('\t' + arr[0] + '://' + arr[1] + (arr[2] ? (':' + arr[2]) : '')); if ('ssh+https' === arr[0]) { - console.info("\tex: ssh -o ProxyCommand='openssl s_client -connect %h:%p -quiet' " + arr[1] + " -p 443\n"); + console.info("\tex: ssh -o ProxyCommand='openssl s_client -connect %h:%p -servername %h -quiet' " + arr[1] + " -p 443\n"); } else if ('ssh' === arr[0]) { console.info("\tex: ssh " + arr[1] + " -p " + arr[2] + "\n"); } else if ('tcp' === arr[0]) { diff --git a/lib/html/index.html b/lib/html/index.html index ed3404d..cd23b4e 100644 --- a/lib/html/index.html +++ b/lib/html/index.html @@ -20,7 +20,7 @@ telebit http none # remove all https handlers

You can always use this port for SSH over HTTPS, even while you're using it for something else:


-ssh -o ProxyCommand='openssl s_client -connect %h:443 -quiet' {{servername}}
+ssh -o ProxyCommand='openssl s_client -connect %h:443 -servername %h -quiet' {{servername}}