galerija-bot/systemd/tunel-ssh.service.bak

14 lines
346 B
INI

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