add missing -servername to ssh over https docs

This commit is contained in:
AJ ONeal 2018-06-13 14:12:23 -06:00
parent 1b41498fb6
commit 94117c7edb
3 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ Connect to your device by any of the following means:
SSH+HTTPS SSH+HTTPS
ssh+https://lucky-duck-37.telebit.cloud:443 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://ssh.telebit.cloud:32852 ssh://ssh.telebit.cloud:32852
@ -210,12 +210,12 @@ telebit save # save http and tcp configuration change
SSH over HTTPS 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 over non-standard port
``` ```
ssh slippery-bobcat-39.telebit.cloud -p 3031 ssh lucky-duck-42.telebit.cloud -p 3031
``` ```
Daemon Usage Daemon Usage

View File

@ -524,7 +524,7 @@ function connectTunnel() {
} }
console.info('\t' + arr[0] + '://' + arr[1] + (arr[2] ? (':' + arr[2]) : '')); console.info('\t' + arr[0] + '://' + arr[1] + (arr[2] ? (':' + arr[2]) : ''));
if ('ssh+https' === arr[0]) { 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]) { } else if ('ssh' === arr[0]) {
console.info("\tex: ssh " + arr[1] + " -p " + arr[2] + "\n"); console.info("\tex: ssh " + arr[1] + " -p " + arr[2] + "\n");
} else if ('tcp' === arr[0]) { } else if ('tcp' === arr[0]) {

View File

@ -20,7 +20,7 @@ telebit http none # remove all https handlers</code></pre>
</div> </div>
<p>You can <em>always</em> use this port for <strong>SSH over HTTPS</strong>, even while you're using it for something else:</p> <p>You can <em>always</em> use this port for <strong>SSH over HTTPS</strong>, even while you're using it for something else:</p>
<pre><code> <pre><code>
ssh -o ProxyCommand='openssl s_client -connect %h:443 -quiet' <span class="js-servername">{{servername}}</span></code></pre> ssh -o ProxyCommand='openssl s_client -connect %h:443 -servername %h -quiet' <span class="js-servername">{{servername}}</span></code></pre>
<div class="js-port" hidden> <div class="js-port" hidden>