opening-and-closing-an-ssh-tunnel-in-a-shell-script-the-smart-way.md Opening and closing an SSH tunnel in a shell script the smart way I recently had the following problem: From an unattended shell script (called by Jenkins), run a command-line tool that accesses the MySQL database on another host. That tool doesn't know that the database is on another host, plus the MySQL port on that host is fir