How can i reestablish a Tunnel if my localhost goes down?
i have 2 machines, Remotehost and localhost, on my localhost im running autossh to keep the tunnel alive in case of network problems.
autossh -M 20000 -L 3300:192.168.2.101:3306 -R 3000:192.168.1.3:3000 firstname.lastname@example.org -p 80
but what if i need to reboot the localhost? how do i auto reconnect the tunnel then?