sshtunneling auto
This commit is contained in:
parent
f876a4d19c
commit
936f4e259c
1 changed files with 15 additions and 0 deletions
15
sshtunnel.service
Normal file
15
sshtunnel.service
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[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 %h/.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
|
Loading…
Reference in a new issue