15 lines
382 B
Text
15 lines
382 B
Text
[Unit]
|
|
Description=SSH Tunnel
|
|
Requires=sysinit.target system.slice
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/
|
|
ExecStart=/usr/bin/ssh -v -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -N -c none -i /root/.ssh/bsc_dev <%= @ssh_user %>@<%= @ssh_addr %> -R 220<%= @ssh_p %>:0:22
|
|
TimeoutStopSec=5
|
|
Restart=always
|
|
RestartSec=60
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|