# cat /etc/systemd/system/autossh-mysql-tunnel.service

[Unit]
Description=AutoSSH tunnel service UK 11222
After=network.target

[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 tunel@78.157.205.4 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -N -D 11222 -i /root/.ssh/id_ed25519 -S none

[Install]
WantedBy=multi-user.target
  • faq/ssh.txt
  • Last modified: 14 months ago
  • by Dr Serge Victor