Re: Connecting to MySQL using DBTools and PuTTY

From: Andrew Gideon (c182driver_at_gideon.org)
Date: 08/25/05


Date: Thu, 25 Aug 2005 17:00:13 -0400

w_searle wrote:

> PUTTY
> Hostname:        user_SSH@webaddress_SSH.com
> SSH Tunnel:        L3306        localhost:3306        (with Local and Auto
> radio boxes chosen)
> (Then I log in using)
> Passowrd:        pass_SSH

Are you telling the tunnel to connect, on the server side, to the machine
running MySQL? I don't see that expressed above, and that is a necessary
part of the setup.

> I have
> tried using "webaddress_SQL.com:3306" in the Tunnel instead of
> "localhost:3306" but this doesn't work.

Is MySQL running on the same server as the SSH server? In that case,
localhost:3306 may be fine.

Is MySQL listening on the SSH server's localhost address on port 3306? When
we set up MySQL, our default is to do so with TCP listen()ing off (ie. only
using the named pipe). Perhaps your MySQL is configured the same way? If
so, that must be changed.

I've users tunneling to various services including MySQL, and there's never
been a problem (beyond getting them to switch to SSH; there seems to be
great love of sending passwords around unencrypted {8^).

 - Andrew



Relevant Pages

  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • Re: reverse shell session
    ... I want to open a session on a client that connects to my server and makes ... a tunnel. ... You may ask why i want to do that, well the remote machine is behind a ... You could run an ssh server on the machine that's behind the FW on some ...
    (comp.security.ssh)
  • Re: "reverse" SOCKS with Putty
    ... I wish to make a tunnel in order to "forward" the LAN to my home ... there are no SSH servers on the network used to play at school. ... by the server to unilaterally set up forwarded connections, ... tunnels for your application in your SSH client. ...
    (comp.security.ssh)
  • Re: [kde-linux] Sound over ssh?
    ... There are of course, easier ways than to tunnel the stream using SSH, but I ... set up 'some kind' of server. ...
    (KDE)
  • Re: Tunneling SMTP Traffic Via SSH Question
    ... Since the server with ssh and the mail server seem to be the same, ... 127.0.0.1:25 as the tunnel destination. ... Tunneling SMTP Traffic Via SSH Question ... > pen testing experience in our state of the art hacking lab. ...
    (Security-Basics)