I have a MySQL server sitting behind a bastion server that I wish to connect to from my local machine.
Ideally I want to port-forward the MySQL port (3316 in this case) to a local port on my machine.
I've tried plink -ssh -L 3306:my.sql.ip.address:3316 my.bastion.server ,but this is not working.
I've got one ssh login for the bastion server and another login for the machine mysql server is running on.
© Server Fault or respective owner