6.3.4 Connecting to MySQL Remotely from Windows with SSH
This section describes how to get an encrypted connection to a remote MySQL server with SSH. The information was provided by David Carlson
.
- Install an SSH client on your Windows machine. For a comparison of SSH clients, see http://en.wikipedia.org/wiki/Comparison_of_SSH_clients.
- Start your Windows SSH client. Set
. SetHost_Name =
yourmysqlserver_URL_or_IP
to log in to your server. Thisuserid=
your_userid
value might not be the same as the user name of your MySQL account.userid
- Set up port forwarding. Either do a remote forward (Set
,local_port: 3306
remote_host:
yourmysqlservername_or_ip
) or a local forward (Setremote_port: 3306
port: 3306
host: localhost
).remote port: 3306
- Save everything, otherwise you will have to redo it the next time.
- Log in to your server with the SSH session you just created.