SSH tunnel: local => gateway => MySQL server
问题 I need to access a MySQL database on a remote server at my lab. The server is only accessible once I log in to a gateway server on the remote network: local server => gateway server => MySQL server. I can ssh to the gateway using port 24222. I am using the PERL DBI module. This is what I use to connect when I am at the lab: my $host="1.2.3.4"; my $database="dbname"; my $user="user"; my $pw="pass"; my $table="table"; I imagine I have to set up a tunnel through the gateway server to the