Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] Permanent sshtunnel for mysql master/slave connection ?
  • From: Richard Bos <radoeka@xxxxxxxxx>
  • Date: Thu, 18 May 2006 14:57:39 +0200
  • Message-id: <200605181457.40373.radoeka@xxxxxxxxx>
Op woensdag 17 mei 2006 09:52, schreef Wilfred van Velzen:
> I have a little script (on a Suse 10.1 server) that creates a ssh tunnel to
> connect a MySql slave server with it's master.
>
> The script does something like this:
>
> while true; do
>     ssh -oBatchMode=yes -L 33306:127.0.0.1:3306 -N root@someserver >>$LOG
> 2>&1
>     sleep 30
> done

Perhaps:
ssh -f -oBatchMode=yes -L 33306:127.0.0.1:3306 -N root@someserver >>$LOG
(-f added)

--
Richard Bos
Without a home the journey is endless

< Previous Next >
References