HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   SSH tunnel hep (

warkry 17th April 2008 21:33

SSH tunnel hep
I am currently trying to set up an SSH tunnel from one server to another and am having difficulty, never done this before. Anyway there are two servers one is a production web server and the other is a test server. The idea is to get hourly updates of the mysql database to the test server from the production server via replication. The test server will then be used for local backups and a few other things.

First things first I am trying to get the ssh tunnel working so I can test out mysql replication. From the test server i run:

ssh -fNg -L 4000:

and after asking for myuser's password it gives me:

bind: Address already in use

I really don't know what it's referring to. Any thoughts?

topdog 17th April 2008 21:59

Why dont you just use mysql replication over an SSL encrypted connection ?

You cannot bind to 3306 because the server on that machine is using the port already choose another port if you really have to do it this way

warkry 21st April 2008 18:13

Interesting, I was under the impression that I needed to use the mySql port on the production server in order to get replication to work over SSH. After the tunnel is setup you run replication as local host over whatever port is forwarded to 3306 on the host machine. In this case 4000.

All of the tutorials/guides I have found on the subject have set up the tunnel in this way. Can any one shed some light on this for me?

All times are GMT +2. The time now is 18:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.