command line - Open Port 3306 via SSH -
i trying access remote mysql database godaddy vps. have enabled remote access on server need open 3306 port on godaddy's vps. told suppor need via ssh not able me further that. have connected server via ssh. have run following command:
telnet myserver.com 3306
when rund command following message, shost not allowed connect mysql serverconnection closed foreign host
.
how open port allow me connect remote mysql database?
use port forwarding.
ssh -l 3306:localhost:3306 myserver.com
(i assume ssh server running ssh myserver.com
.)
then, while connection active, connect database on localhost instead of myserver.com (e.g. test using telnet localhost 3306
).
more details in ssh manual.
Comments
Post a Comment