How to create a persistent ssh tunnel using autossh

Table of ContentsCreating the SSH TunnelMaking the Tunnel Persistent Creating a persistent SSH tunnel involves two steps: first, creating the tunnel itself, and second, ensuring that the tunnel is automatically re-established if the connection is lost. Creating the SSH Tunnel The basic command for creating an SSH tunnel is: ssh -L [local port]:[destination host]:[destination port] ...