Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
445e08c4d2 | ||
|
|
7bc2193d09 | ||
| f0049c7f06 | |||
| b5d57817cf | |||
| 1e3f7f671d | |||
| 00f3b3ab45 | |||
|
|
19a42a596c | ||
|
|
de2290dd3e | ||
|
|
7db8a7a4ae |
@ -1,8 +1,7 @@
|
|||||||
# Telebit™ Remote
|
# Telebit™ Remote | a [Root](https://rootprojects.org) project
|
||||||
|
|
||||||
Because friends don't let friends localhost™
|
Because friends don't let friends localhost™
|
||||||
|
|
||||||
| Sponsored by [ppl](https://ppl.family)
|
|
||||||
| **Telebit Remote**
|
| **Telebit Remote**
|
||||||
| [Telebit Relay](https://git.coolaj86.com/coolaj86/telebit-relay.js)
|
| [Telebit Relay](https://git.coolaj86.com/coolaj86/telebit-relay.js)
|
||||||
| [sclient](https://telebit.cloud/sclient)
|
| [sclient](https://telebit.cloud/sclient)
|
||||||
|
|||||||
@ -539,7 +539,7 @@ function getToken(err, state) {
|
|||||||
console.error(err);
|
console.error(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.info("waiting...");
|
console.info(TPLS.remote.waiting.replace(/{email}/, state.config.email));
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -574,18 +574,12 @@ function getToken(err, state) {
|
|||||||
, end: function () {
|
, end: function () {
|
||||||
utils.putConfig('enable', [], function (err) {
|
utils.putConfig('enable', [], function (err) {
|
||||||
if (err) { console.error(err); return; }
|
if (err) { console.error(err); return; }
|
||||||
console.info("Success");
|
console.info(TPLS.remote.success);
|
||||||
|
|
||||||
// workaround for https://github.com/nodejs/node/issues/21319
|
// workaround for https://github.com/nodejs/node/issues/21319
|
||||||
if (state._useTty) {
|
if (state._useTty) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
console.info("Some fun things to try first:\n");
|
console.info(TPLS.remote.next_steps);
|
||||||
console.info(" ~/telebit http ~/public");
|
|
||||||
console.info(" ~/telebit tcp 5050");
|
|
||||||
console.info(" ~/telebit ssh auto");
|
|
||||||
console.info();
|
|
||||||
console.info("Press any key to continue...");
|
|
||||||
console.info();
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}, 0.5 * 1000);
|
}, 0.5 * 1000);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ Telebit Remote is the T-Rex long-arm of the Internet. UNSTOPPABLE!
|
|||||||
|
|
||||||
Using reliable HTTPS tunneling to establishing peer-to-peer connections,
|
Using reliable HTTPS tunneling to establishing peer-to-peer connections,
|
||||||
Telebit is empowering the next generation of tinkerers. Access your devices.
|
Telebit is empowering the next generation of tinkerers. Access your devices.
|
||||||
Share your stuff. Be UNSTOPPABLE! (Join us at https://ppl.family)
|
Share your stuff. Be UNSTOPPABLE! (Join us at https://rootprojects.org)
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ usage: telebit http <path/port/none> [subdomain]
|
|||||||
|
|
||||||
Use cases:
|
Use cases:
|
||||||
|
|
||||||
- Lazy man's AirDrop (works or lazy women too!)
|
- Lazy man's AirDrop (works for lazy women too!)
|
||||||
- Testing dev sites on a phone
|
- Testing dev sites on a phone
|
||||||
- Sharing indie music and movies with friends"
|
- Sharing indie music and movies with friends"
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ usage: telebit ssh <auto|port|none>
|
|||||||
|
|
||||||
All https traffic will be inspected to see if it looks like ssh Once enabled all traffic that looks
|
All https traffic will be inspected to see if it looks like ssh Once enabled all traffic that looks
|
||||||
|
|
||||||
ssh auto Make ssh Just Works™ (on port 22)
|
ssh auto Make ssh Just Work™ (on port 22)
|
||||||
|
|
||||||
ssh <port> forward ssh traffic to non-standard port
|
ssh <port> forward ssh traffic to non-standard port
|
||||||
ex: telebit ssh 22 ex: explicitly forward ssh-looking packets to localhost:22
|
ex: telebit ssh 22 ex: explicitly forward ssh-looking packets to localhost:22
|
||||||
@ -464,6 +464,19 @@ code = "
|
|||||||
==============================================
|
==============================================
|
||||||
"
|
"
|
||||||
|
|
||||||
|
waiting = "waiting for you to check your email..."
|
||||||
|
|
||||||
|
success = "Success"
|
||||||
|
|
||||||
|
next_steps = "Some fun things to try first:
|
||||||
|
|
||||||
|
~/telebit http ~/Public
|
||||||
|
~/telebit tcp 5050
|
||||||
|
~/telebit ssh auto
|
||||||
|
|
||||||
|
Press any key to continue...
|
||||||
|
"
|
||||||
|
|
||||||
[remote.setup]
|
[remote.setup]
|
||||||
|
|
||||||
email = "Welcome!
|
email = "Welcome!
|
||||||
|
|||||||
@ -51,18 +51,24 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h2>You've claimed <span class="js-servername">{{servername}}</span></h2>
|
<h2>You've claimed <span class="js-servername">{{servername}}</span></h2>
|
||||||
<p>Here's some ways you can use it:</p>
|
<p>Here are some ways you can use Telebit via Terminal or other Command Line Interface:</p>
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<pre><code>telebit http ~/Public # serve a public folder
|
<br />
|
||||||
telebit http 3000 # forward all https traffic to localhost:3000
|
<pre><code>~/telebit ssh auto # allows you to connect to your computer with <br /> ssh-over-https from a different computer</span></code></pre>
|
||||||
telebit http none # remove all https handlers</code></pre>
|
<pre><code>~/telebit http ~/Public # serve a public folder
|
||||||
|
~/telebit http 3000 # forward all https traffic to localhost:3000
|
||||||
|
~/telebit http none # remove all https handlers</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>You can <em>always</em> tunnel <strong>SSH over HTTPS</strong>,
|
<p>And remember you can <em>always</em> tunnel <strong>SSH over HTTPS</strong>,
|
||||||
even while you're using it for something else:</p>
|
even while you're using it for something else:</p>
|
||||||
<div class="code-block"><pre><code>telebit ssh auto</code></pre>
|
<p> </p>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<p><summary><strong>Here are some examples for those of you that want to access files and folders remotely. </strong></summary></p>
|
||||||
|
<p><strong>This function allows you to connect one computer to another computer you also have SSH on.</strong></p>
|
||||||
|
<div class="code-block"><pre><code>~/telebit ssh <span class="js-servername">{{servername}}</span></code></pre>
|
||||||
<br>
|
<br>
|
||||||
<pre><code>telebit ssh <span class="js-servername">{{servername}}</span></code></pre>
|
|
||||||
- or -
|
- or -
|
||||||
<pre><code>ssh -o ProxyCommand='<a href="https://telebit.cloud/sclient">sclient</a> %h' <span class="js-servername">{{servername}}</span></code></pre>
|
<pre><code>ssh -o ProxyCommand='<a href="https://telebit.cloud/sclient">sclient</a> %h' <span class="js-servername">{{servername}}</span></code></pre>
|
||||||
- or -
|
- or -
|
||||||
@ -70,8 +76,7 @@ telebit http none # remove all https handlers</code></pre>
|
|||||||
ssh -o ProxyCommand="$proxy_cmd" <span class="js-servername">{{servername}}</span></code></pre>
|
ssh -o ProxyCommand="$proxy_cmd" <span class="js-servername">{{servername}}</span></code></pre>
|
||||||
</div>
|
</div>
|
||||||
<pre><code>ssh -o ProxyCommand='openssl s_client -connect %h:443 -servername %h -quiet' <span class="js-servername">{{servername}}</span></code></pre>
|
<pre><code>ssh -o ProxyCommand='openssl s_client -connect %h:443 -servername %h -quiet' <span class="js-servername">{{servername}}</span></code></pre>
|
||||||
|
</details>
|
||||||
|
|
||||||
<!--div class="js-port" hidden>
|
<!--div class="js-port" hidden>
|
||||||
<h2>You've claimed port <span class="js-serviceport">{{serviceport}}</span></h2>
|
<h2>You've claimed port <span class="js-serviceport">{{serviceport}}</span></h2>
|
||||||
<p>Here's some ways you can use it:</p>
|
<p>Here's some ways you can use it:</p>
|
||||||
@ -87,4 +92,4 @@ ssh <span class="js-servername">{{servername}}</span> -p <span class="js-service
|
|||||||
|
|
||||||
<script src="js/app.js"></script>
|
<script src="js/app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
document.body.hidden = false;
|
document.body.hidden = false;
|
||||||
|
|
||||||
var hash = window.location.hash.substr(1);
|
var hash = window.location.hash.replace(/^[\/#?]+/, '');
|
||||||
var query = window.location.search;
|
var query = window.location.search;
|
||||||
|
|
||||||
function parseQuery(search) {
|
function parseQuery(search) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "telebit",
|
"name": "telebit",
|
||||||
"version": "0.20.8",
|
"version": "0.20.251025",
|
||||||
"description": "Break out of localhost. Connect to any device from anywhere over any tcp port or securely in a browser. A secure tunnel. A poor man's reverse VPN.",
|
"description": "Break out of localhost. Connect to any device from anywhere over any tcp port or securely in a browser. A secure tunnel. A poor man's reverse VPN.",
|
||||||
"main": "lib/remote.js",
|
"main": "lib/remote.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@ -34,9 +34,9 @@ ExecReload=/bin/kill -USR1 $MAINPID
|
|||||||
# Use private /tmp and /var/tmp, which are discarded after this stops.
|
# Use private /tmp and /var/tmp, which are discarded after this stops.
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
# Use a minimal /dev
|
# Use a minimal /dev
|
||||||
;PrivateDevices=true
|
PrivateDevices=true
|
||||||
# Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
|
# Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
|
||||||
ProtectHome=true
|
;ProtectHome=true
|
||||||
# Make /usr, /boot, /etc and possibly some more folders read-only.
|
# Make /usr, /boot, /etc and possibly some more folders read-only.
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
# ... except for a few because we want a place for config, logs, etc
|
# ... except for a few because we want a place for config, logs, etc
|
||||||
@ -61,4 +61,5 @@ NoNewPrivileges=true
|
|||||||
; NoNewPrivileges=true
|
; NoNewPrivileges=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
# For userspace service
|
||||||
|
WantedBy=default.target
|
||||||
|
|||||||
@ -62,6 +62,6 @@ NoNewPrivileges=true
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
# For system-level service
|
# For system-level service
|
||||||
;WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
# For userspace service
|
# For userspace service
|
||||||
WantedBy=default.target
|
;WantedBy=default.target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user