galerija-bot/systemd/tunel-janus.service

17 lines
515 B
INI
Raw Normal View History

[Unit]
Description=Janus tunel
After=network.target
[Service]
# Tuneliraj lokalni port 22 na streznikov port 2222
User=g1smo
RemainAfterExit=yes
EnvironmentFile=/etc/default/galbot
#ExecStart=/usr/bin/ssh -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 8188:localhost:8188 ${REMOTEUSER}@${REMOTEHOST}
ExecStart=/usr/bin/ssh -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 8088:localhost:8088 ${REMOTEUSER}@${REMOTEHOST}
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target