MySQL Server Refusing Local Connections Over SSH Tunnel -
i have remote windows server mysql , cygwin (enabling remote ssh connections). when connect local instance of workbench (i.e. workbench handling tunnel), via ssh root, have no problem connecting remote database.
i have need set own tunnel because have app needs mysql access. chose use putty, , had partial success.
i can connect (using workbench test client) through tunnel, localhost:3307, have forwarded myremoteserver.no-ip.com:3306, if have remote root user there set accept connections hosts (%), and/or actual ip of server.
if restrict root 127.0.0.1 (as should be) error host x.x.x.x not allowed connect mysql server
x.x.x.x actual address of remote server!
somehow, using putty make tunnel isn't presenting me local connection. instead remote connection, though remote ip ip of remote server
my question: how can set putty mimic way workbench makes tunnel connections?
note: connections remote ip via no-ip address. works when workbench opens tunnel. server run within aws ec2 ecosystem.
my current putty connection no-ip address , tunneling settings source:3307, destination: myremoteserver.no-ip.com:3306, local , auto
.
edit: have tried 127.0.0.1:3306
destination address in putty tunnel settings , got same result.
my current putty connection no-ip address , tunneling settings source:3307, destination: myremoteserver.no-ip.com:3306, local , auto.
you want restrict remote instance of mysql accept connections on localhost interface, tunnel should forward remote host's localhost interface instead of network interface. change tunnel's destination address 127.0.0.1
instead of server's name.
Comments
Post a Comment