Re: Using ssh tunnel and mysql

2003-03-22 Thread Paul DuBois
At 14:01 -0600 3/10/03, Pete Harlan wrote: On Mon, Mar 10, 2003 at 11:32:06AM -0600, Paul DuBois wrote: Whether it's a feature or not, it's not always so easy to figure out what to do. If you specify -h localhost, it can be argued that you really want the socket even if you specify the port. I

Re: Using ssh tunnel and mysql

2003-03-11 Thread Rick Mann
on 3/10/03 1:55 PM, Pete Harlan at [EMAIL PROTECTED] wrote: > So your db is on foo.bar.com, and that's the machine you're sshing > into? If so, then you might try > > ssh -n -N -L 3307:127.0.0.1:3306 foo.bar.com > > Since, once on the new host, it's the localhost's IP address you want > to conn

Re: Using ssh tunnel and mysql

2003-03-11 Thread Tonu Samuel
On Mon, 2003-03-10 at 22:01, Pete Harlan wrote: > On Mon, Mar 10, 2003 at 11:32:06AM -0600, Paul DuBois wrote: > > Whether it's a feature or not, it's not always so easy to figure out > > what to do. If you specify -h localhost, it can be argued that you > > really want the socket even if you spec

Re: Using ssh tunnel and mysql

2003-03-10 Thread Rick Mann
on 3/10/03 9:24 AM, Pete Harlan at [EMAIL PROTECTED] wrote: > If you want to connect to localhost via TCP/IP, you have to specify > the host by IP address (127.0.0.1), not as "localhost". Tried that, it doesn't work. In my case, I call ssh like this: ssh -n -N -L 3307:foo.bar.com:3306 foo.bar.co

Re: Using ssh tunnel and mysql

2003-03-10 Thread Pete Harlan
On Mon, Mar 10, 2003 at 11:32:06AM -0600, Paul DuBois wrote: > Whether it's a feature or not, it's not always so easy to figure out > what to do. If you specify -h localhost, it can be argued that you > really want the socket even if you specify the port. It can be > argued conversely that if you

RE: Using ssh tunnel and mysql

2003-03-10 Thread Sebastian Stadtlich
Hi > If you > tunnel the port, you have to be sure to block access to that > port from the outside, because outside connections to that > port (on the tunneling > client) will be tunneled too (under Linux anyway; I didn't > try it elsewhere). > > That's potentially dangerous and not complete

Re: Using ssh tunnel and mysql

2003-03-10 Thread Paul DuBois
At 11:24 -0600 3/10/03, Pete Harlan wrote: On Fri, Mar 07, 2003 at 05:43:29PM -0800, Jeremy Zawodny wrote: On Fri, Mar 07, 2003 at 05:37:38PM -0800, LZ Orders wrote: > Hi. I wanted to connect from a client machine to a MySQL server using > ssh. I execute the following on the local machine (the s

Re: Using ssh tunnel and mysql

2003-03-10 Thread Pete Harlan
On Fri, Mar 07, 2003 at 05:43:29PM -0800, Jeremy Zawodny wrote: > On Fri, Mar 07, 2003 at 05:37:38PM -0800, LZ Orders wrote: > > Hi. I wanted to connect from a client machine to a MySQL server using > > ssh. I execute the following on the local machine (the server is > > foo.bar.com): > > > > %

Re: Using ssh tunnel and mysql

2003-03-07 Thread KH Chiu
What does it really matter is whether you have create mySQL user that allow access the database from the SSH server. Please note that localhost, 127.0.0.1 or the machine ip address will be treated as different entries by mySQL. -- Yours, KH Chiu C&A Computer Consultants Ltd. Tel: 3104 2070 Fax:

Re: Using ssh tunnel and mysql

2003-03-07 Thread Jeremy Zawodny
On Fri, Mar 07, 2003 at 05:37:38PM -0800, LZ Orders wrote: > Hi. I wanted to connect from a client machine to a MySQL server using > ssh. I execute the following on the local machine (the server is > foo.bar.com): > > % ssh -n -N -L 3307:foo.bar.com:3306 foo.bar.com > > I then try to connect fr