<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Chris,</p>
<p>I notice you are using a manual script to handle an always up
tunnel.<br>
That's what I used to do but there are ways the connection can
fail, but ssh not exit cleanly so the tunnel doesn't restart.<br>
I've switched to using autossh to maintain the tunnel, with a
simple script to start it.<br>
</p>
<div class="moz-signature">
<style>
div.sig {
border: 1px solid black;
height: auto;
float: left;
padding: 1em;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
a.sig1 {
padding-bottom:1em;
margin-bottom:1em;
}
span.left {
width: 4em;
float: left;
}
span.pulseit {
-webkit-animation: mymove 1s infinite; /* Chrome, Safari, Opera */
animation: pulse 2s infinite;
}
@keyframes pulse { 50% {font-size: 0.9em;} }
</style> Regards<br>
David Godfrey<br>
SB Tech Services<br>
<a class="sig1" href="tel:+61437286200">mb: +61 437 286 200</a><br>
<br>
<div class="sig"> <span class="left"> <span class="pulseit">chat:</span>
</span> <span style="float: right;"> with <em>dcg_mx</em> at<br>
<a href="http://riot.im/app/#/room/#sbts:matrix.org">#sbts:matrix.org</a>
(Computer)<br>
<a href="http://matrix.to/#/#sbts:matrix.org">#sbts:matrix.org</a>
(mobile Device) </span> </div>
<br style="clear:both">
<br>
</div>
<div class="moz-cite-prefix">On 18/07/18 09:20, Chris McCormick
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6c1014aa-2cd1-dd93-0ed9-b6dff069e5ac@mccormick.cx">Hi
Nick,
<br>
<br>
On 17/07/18 15:41, Nick Bannon wrote:
<br>
> Thinking I might pick up a Android HMD-Global Nokia 3
$90-$100 at
<br>
> Coles/Woolworths to play with - not the fastest, but it has
2GiB RAM,
<br>
> NFC and can run Android 8:
<br>
>
<br>
> <a class="moz-txt-link-freetext" href="https://www.ozbargain.com.au/node/391443">https://www.ozbargain.com.au/node/391443</a>
<br>
<br>
Termux is resource light, so that device should be more than
adequate.
<br>
<br>
I wonder if it would be possible to use the NFC reader - e.g. set
it up to make an HTTP request or send a UDP packet when you scan a
tag.
<br>
<br>
I have a phone in my office with Termux specifically set up for
experimenting. It runs a small script on boot which maintains an
SSH tunnel to my server and then I have an entry in my laptop's
SSH config so I can type "ssh termux-phone" from anywhere and it
connects to the phone (via my server). Here's the tunnel script:
<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/chr15m/gnu-linux-in-tiny-places-plug/blob/master/scripts/termux/boot/1-ssh-tunnel">https://github.com/chr15m/gnu-linux-in-tiny-places-plug/blob/master/scripts/termux/boot/1-ssh-tunnel</a>
<br>
<br>
Here's the .ssh/config stanza:
<br>
<br>
Host termux-phone
<br>
ProxyCommand ssh -A $USER@$HOST nc 127.0.0.1 8022 $*
<br>
<br>
(substitute your own server's USER and HOST for the variables)
<br>
<br>
Cheers,
<br>
<br>
Chris.
<br>
<br>
</blockquote>
<br>
</body>
</html>