Adventures in Networking

Main menu:

autossh.service

[Unit]
Description=AutoSSH tunnel service to support Zabbix monitoring
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -N -o "ExitOnForwardFailure=yes" -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o UserKnownHostsFile=/home/username/.ssh/known_hosts -i /home/username/.ssh/id_rsa -L 20050:localhost:10050 username@example.com

[Install]
WantedBy=multi-user.target