2020-12-27 00:13:34 -05:00
|
|
|
[Unit]
|
|
|
|
Description=Service to maintain an ssh reverse tunnel
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
ExecStart=/usr/bin/ssh -Nn \
|
|
|
|
-o ServerAliveInterval=30 \
|
|
|
|
-o ServerAliveCountMax=3 \
|
|
|
|
-o ExitOnForwardFailure=yes \
|
|
|
|
-i /home/paul/.ssh/id_rsa_fast \
|
|
|
|
-R 7000:127.0.0.1:8080 \
|
|
|
|
-R 7001:127.0.0.1:8443 \
|
|
|
|
-R 7002:127.0.0.1:2222 \
|
|
|
|
-R 7003:127.0.0.1:25565 \
|
2021-02-13 23:14:49 -05:00
|
|
|
-R 7004:127.0.0.1:8448 \
|
2020-12-27 00:13:34 -05:00
|
|
|
pew@polyvalent.seaturtle.pw
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|