How do I connect to MySQL when it's setting behind 2 layers of ssh?
Posted
by David Corley
on Server Fault
See other posts from Server Fault
or by David Corley
Published on 2010-04-07T13:19:37Z
Indexed on
2010/04/07
16:53 UTC
Read the original article
Hit count: 429
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