[Unit]
Description=SSH reverse tunnel
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/ssh -g -N -T -o VerifyHostKeyDNS=no -o "ServerAliveInterval 10" -o StrictHostKeyChecking=no -o "ExitOnForwardFailure yes" -R xxxx:localhost:xxxx xx@xxxx -i /home/xxxx/.ssh/id_rsa
Restart=always
RestartSec=5s
[Install]
WantedBy=default.target
/etc/systemd/system
sudo systemctl enable sudo systemctl start sudo systemctl status
sudo lsof -i -P -n | grep LISTEN