Set up ssh tunnel from spinch to plugh.de

This commit is contained in:
Joscha 2025-02-27 16:36:03 +01:00
parent d53b86d3ca
commit 3609b1b760
2 changed files with 23 additions and 2 deletions

View file

@ -12,11 +12,18 @@ rsync -vP \
bondrucker@spinch:showbits-thermal-printer.service
or return 1
rsync -vP \
showbits-thermal-printer/meta/spinch-tunnel.service \
bondrucker@spinch:showbits-thermal-printer-tunnel.service
or return 1
rsync -vP \
target/aarch64-unknown-linux-gnu/release/showbits-thermal-printer \
bondrucker@spinch:showbits-thermal-printer
or return 1
ssh root@spinch "\
systemctl daemon-reload && \
systemctl restart showbits-thermal-printer.service"
systemctl daemon-reload \
&& systemctl restart showbits-thermal-printer.service \
&& systemctl restart showbits-thermal-printer-tunnel.service \
"