autossh/autossh.service

12 lines
241 B
Desktop File

[Unit]
Description=AutoSSH service for port 2222
After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -NL 2222:localhost:2222 -o TCPKeepAlive=yes foo@bar.com
[Install]
WantedBy=multi-user.target