shell-scripte-code/sshtunnel.service
Simon Rieger cecf326fc0 bugfix
2017-01-15 11:05:13 +01:00

15 lines
417 B
Desktop File

[Unit]
Description=SSH Tunnel
ConditionPathExists=|/usr/bin
After=network.target
[Service]
User=root
ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa -R 12345:localhost:22 pi@mgwywbvcwmot7vir.myfritz.net
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=3
Restart=always
[Install]
WantedBy=multi-user.target