e425d2210404

Merge
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 08 Nov 2023 10:04:12 -0500
parents 6b65a9dcc92e (current diff) 8c2e534a1cb5 (diff)
children 7d174318378e
branches/tags (none)
files README.markdown

Changes

--- a/README.markdown	Wed Nov 08 10:03:31 2023 -0500
+++ b/README.markdown	Wed Nov 08 10:04:12 2023 -0500
@@ -798,6 +798,26 @@
 
 BI500.  Talked about visualization and Adobe Illustrator.
 
+PIBS800.  "House" meeting, talked about various stuff.
+
+Figured out how to jank together SSH tunneling between my server and my Pine SBC
+to expose a server running on the Pine to the internet.  Basically need to do
+two legs of SSH tunneling for this:
+
+    ssh -NTR '*:12345:localhost:8888' sl
+    ssh -NTL    '8888:localhost:80'   pine
+
+The first line makes anything connecting to port `12345` on the remote machine
+actually connect to what my intermediate machines sees as `localhost:8888`.
+Unfortunately that `localhost` hostname is indeed a hostname, and I can't use an
+SSH server name there to automagically jump around that way.  So anything
+hitting `12345` on the server will now hit `8888` on my intermediate machine.
+Then we use the second tunnel to forward *that* to whatever `pine` thinks
+`localhost:80` is.  Also note you need to enable `GatewayPorts` on the remote
+server and restart `sshd` for this to ever work at all.
+
+Read a bit for 503.  Need to do a bunch more.
+
 Backpacked classes for next semester.  Can't register yet, but I think that's
 because registration doesn't open until Nov 13?