16 lines
378 B
INI
16 lines
378 B
INI
[Unit]
|
|
Description=HTTP 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 8989:localhost:80 ${REMOTEUSER}@${REMOTEHOST}
|
|
RestartSec=5
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|