Skip to content

Commit

Permalink
Added ssh tunnel service unit for systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
lianhao committed Nov 2, 2017
1 parent 9467097 commit cc2ba05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions onap/gateway/ssh-tunnel.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=SSH tunnel for stable neworking connection
ConditionPathExists=|/usr/bin
After=network.target

[Service]
User=cloud
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -i /home/cloud/.ssh/intelvm-rsa.key -L 28888:10.7.211.16:1080 llu15@otc-disteng.ostc.intel.com

# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=5
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit cc2ba05

Please sign in to comment.