2017-01-14 14:36:23 +01:00
|
|
|
[Unit]
|
|
|
|
Description=SSH Tunnel
|
|
|
|
ConditionPathExists=|/usr/bin
|
|
|
|
After=network.target
|
|
|
|
|
2017-05-21 02:56:22 +02:00
|
|
|
# host <-- client; Weiterleitung von Port 22 auf dem Server an den Client (Port 12345) auf Server:
|
2017-01-14 14:36:23 +01:00
|
|
|
[Service]
|
|
|
|
User=root
|
2017-02-05 00:11:14 +01:00
|
|
|
ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa -R 12345:localhost:22 root@mgwywbvcwmot7vir.myfritz.net
|
2017-01-14 14:36:23 +01:00
|
|
|
|
|
|
|
# Restart every >2 seconds to avoid StartLimitInterval failure
|
|
|
|
RestartSec=3
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|