scripts/ansible/files/fogcutter/sshtunnel.service

25 lines
559 B
INI
Raw Normal View History

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 \
2021-07-18 14:57:47 -04:00
-R 7000:127.0.0.1:80 \
-R 7001:127.0.0.1:443 \
2020-12-27 00:13:34 -05:00
-R 7002:127.0.0.1:2222 \
-R 7003:127.0.0.1:25565 \
pew@polyvalent.seaturtle.pw
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target