autossh

AutoSSH is a tool that ensures persistent SSH connections by = automatically restarting dropped sessions. Ideal for secure remote access, SSH tunnels, and port forwarding, it keeps connections alive even in unstable networks. Perfect for developers, sysadmins, and pentesters needing reliable, automated SSH connectivity.

Autossh Simple Example