autossh/my.conf

19 lines
551 B
Plaintext
Raw Normal View History

[Unit]
# Override and reset the Description to blank
Description=
# Then append my local description to the blank Description
Description=AutoSSH service for ssh reverse tunnel
[Service]
# Override and reset ExecStart to blank
ExecStart=
# Append a legal command to create a normal encrypted tunnel
# ExecStart=/usr/bin/autossh -M 0 -NL 2222:localhost:2222 -o TCPKeepAlive=yes foo@bar.com
# OR
# Append a legal command to create a reverse encrypted tunnel
# ExecStart=/usr/bin/autossh -M 0 -NR 2222:localhost:2222 -o TCPKeepAlive=yes foo@bar.com