SSH Tunnel is a fast way to transfer traffic through unsafe internet today. It would be used in MySQL connect, FTP connect or HTTP connect, ...
$ ssh -L [local_port]:[remote_endpoint]:[remote_port] [ssh_user]:[ssh_ip]
Lets say you have a EC2 instance (18.104.22.168) and remote DB instance (22.214.171.124) listening port 3306
$ ssh -L 3307:126.96.36.199:3306 firstname.lastname@example.org
Testing ssh tunnel
$ telnet 127.0.0.1 3307
$ # or
$ mysql -h 127.0.0.1 -P 3307 -u root -p