Update sshtunnel.service

This commit is contained in:
Simon Rieger 2017-03-14 23:09:14 +01:00 committed by GitHub
parent f9993b5e9b
commit 547087d8c7

View file

@ -3,6 +3,7 @@ Description=SSH Tunnel
ConditionPathExists=|/usr/bin ConditionPathExists=|/usr/bin
After=network.target After=network.target
# host <-- client; Weiterleitung von Port ... auf dem Server an den Client (Port ...) auf Server:
[Service] [Service]
User=root 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 root@mgwywbvcwmot7vir.myfritz.net 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