added an ssh reverse tunnel to auriga

This commit is contained in:
Shoofle 2022-02-11 23:53:44 -05:00
parent 022abb407e
commit 53d5d79a64
2 changed files with 14 additions and 0 deletions

View File

@ -33,3 +33,5 @@ if i want to restart them i can do `systemctl restart cygnus`, and perhaps if i
minor note but in the scripts to be run by the system, make sure that things don't depend on environment variables and such unless you really want it. for example use the explicit full path to a program instead of just `fortune` use `/usr/games/fortune` because the environment configures where to look for executables.
installed yt-dl (through apt) and then yt-dlp because yt-dl didn't work https://github.com/yt-dlp/yt-dlp#installation
symlinked the ssh tunnel service into /etc/systemd/system/ so that i get an always-on ssh tunnel!!!

12
ssh_auriga_tunnel.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Make a tunnel so that auriga can ssh here, via bog standard ssh stuff
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/ssh -g -N -T -o VerifyHostKeyDNS=no -o "ServerAliveInterval 10" -o StrictHostKeyChecking=no -o "ExitOnForwardFailure yes" -R 8090:localhost:22 shoofle@shoofle.net -i /home/shoofle/.ssh/cygnus_to_auriga
Restart=always
RestartSec=5s
[Install]
WantedBy=default.target