1

I can ssh into a mysql server via an intermediate host from home:

 Peter@home -> Ubuntu a.b.com -> MySQL on Ubuntu: x.y.org 

by:

 ssh -t [email protected] ssh [email protected] 

as x.y.org only allow ssh from a fixed a.b.com ip address, and mysql port 3306 only accessible from x.y.org's 127.0.0.1/localhost.

How can I connect to x.y.org:3306 through these two ssh tunnels?

1 Answer 1

1

ssh -J <jumphost> -L <localport>::3306 <destination>

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.