MySQL Connection Over an ssl Tunnel

Rather than leave MySQL open to the world, consider firewalling it off and tunneling a connection over ssh.

This command will allow you to connect to your MySQL server on hostname.domain.com on localhost:7777.

ssh -L7777:127.0.0.1:3306 user@hostname.domain.com

One thought on “MySQL Connection Over an ssl Tunnel

  1. Pingback: Basic iptables Configuration | spiralbound.net

Leave a Reply