Today we helped Pete Forsyth get a private wiki running on a spare computer at home.
digraph { rankdir=LR Router [shape=box] Laptop -> Router -> MacMini }
This is more or less what we did interactively
ssh wikiwki.mynetgear.com # download the the repository key with curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - # then setup the repository sudo sh -c "echo deb https://deb.nodesource.com/node_14.x groovy main \ > /etc/apt/sources.list.d/nodesource.list" sudo apt-get update sudo apt-get install nodejs npm install --global wiki wiki --security_legacy ctrl-Z bg
We collectively remembered the control incantations to adjust the ssh connection. ~C was the magic.
# fun interactive SSH hackery ~C ssh> -L 3000:localhost:3000
This single ssh command will also setup the tunnel for port 3000
ssh -L 3000:localhost:3000 wikiwiki.mynetgear.com wiki --security_legacy &
One line to rule them all
ssh -n -L 3000:localhost:3000 \ wikiwiki.mynetgear.com wiki --security_legacy