Fwd: mysql connection through ssl tunnel

Peter Boosten peter at boosten.org
Mon Oct 20 20:27:12 PDT 2008



John Almberg wrote:
> 
> Where 'admin' is the user I am logging into on the remote machine, and
> 'example.com' is the hostname of the remote machine. I guess equivalent
> to the following?
> 
> ttyv7   "/usr/bin/ssh -nNTx -R 3306:127.0.0.1:33006 admin at example.com
>>/dev/null 2>&1"    unknown on
> 
> Port 33006 is not a typo. There are databases running on both machines,
> so I need to use a different port for the tunnel.

I don't think this will work because of 127.0.0.1 not being a FQDN, but
I could be mistaken.

> 
> And as far as I can tell, I reload /etc/ttys with 'kill -1 1'.
> 
> This looks dangerous...
> 

You can safely HUP it...

Peter

-- 
http://www.boosten.org


More information about the freebsd-questions mailing list