MySQL-SSH2
JSON →mysql-ssh2 v1.0.1 provides a MySQL connection established through an SSH tunnel, extending the original mysql-ssh package. Unlike its predecessor, it allows specifying a remote database host in the connection config rather than forcing localhost, thus avoiding MySQL access denial issues. The package is minimal, depending only on mysql2 and ssh2, and is suitable for reaching databases that are only accessible via an SSH gateway. It uses Promises and requires manual closing of the tunnel. Release cadence is unknown; the package appears to be in maintenance mode.
Resources
packagemysql-ssh2 ↗