How can I create an SSH connection while using DBI to connect to an SQL database? Currently I edit my database through HeidiSQL which lets me SSH then TCP/IP to the SQL server, but now I need to start doing some automated stuff with perl.
When I use `Net::SSH2` I can connect no problem, but then when I use DBI I believe it does not go through the SSH tunnel as it gives me a login error.
Do I have to basically run all my DBI commands through a SSH handle? or worse, run them manually through a SSH shell?