[Unit] Description=AutoSSH tunnel to wphost02 MySQL After=network.target [Service] Type=simple User=root Environment="AUTOSSH_GATETIME=0" ExecStart=/usr/bin/autossh -M 0 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -i /root/.ssh/itpp-infra -L 127.0.0.1:33060:localhost:3306 -N root@5.161.62.38 Restart=always RestartSec=10 [Install] WantedBy=multi-user.target