[Unit] Description=foo ssh tunnel socket [Socket] ListenStream=127.0.0.1:3307
[Unit] Description=foo ssh tunnel [Service] ExecStart=/usr/bin/ssh -N -L3307:host1.example.com:3306 shell.example.com [Install] Also=foo-tunnel.socket