How do I replicate this simple SSH command for port-forwarding MySQL

ssh-shell
core-tunnel

#1

Hi there, I'm essentially looking to replicate this in Core Tunnel:

ssh user@example.com -L 3307:127.0.0.1:3306 -N

When I attempt to set this up with Core Tunnel, the connection seems to authenticate, but when I try to connect via the CLI, it doesn't work. I don't seem to have this issue when issuing the raw command above.

mysql -u USER -p DATABASE --host=127.0.0.1 --port=3307

Any suggestions? I'm just starting to use Core Tunnel. Any docs that you could point me to would be most helpful.


(Yang.Y) #2

Here is the equivalent configuration in Core Tunnel:

image

There is a doc describers how to use port forwarding with Core Tunnel:

Feel free to ask if you have questions :wink:


#3

Thanks. This is what I expected, but for some reason, it doesn't work for me. The equivalent CLI command does though. How weird is this?

Update: This seems to work now. Not sure what the problem was, but it's working and that's what matters. Thanks!