2023-06-05 04:13:20 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Janus tunel
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Tuneliraj lokalni port 22 na streznikov port 2222
|
|
|
|
User=g1smo
|
|
|
|
RemainAfterExit=yes
|
|
|
|
EnvironmentFile=/etc/default/galbot
|
2023-06-06 05:19:51 +02:00
|
|
|
#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}
|
2023-06-05 04:13:20 +02:00
|
|
|
RestartSec=5
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|