SSH based connection fails
sunshine
Posts: 3
Hi there.
I've got a problem.
I'm using SSH mode to connect to a remote server. SSH itself works, but MySQL Compare is not able to connect to MySQL afterwards.
Error Message:
"Error Connecting to Database
Can't connect to MySQL server on '127.0.0.1' (10061): Server did not respond within the specified timeout interval"
But when I ssh to the server manually, using the same user as MySQL Compare does, and run...
$ mysql --host=127.0.0.1 --port=3306 --user=$USER --password=$PW
... it works.
Question:
Does MySQL Compare rely on any other settings on the server, or is it basically running just a command like the one I've posted above?
(I'm using MySQL Compare 1.0.0.425)
Thanks a lot!
I've got a problem.
I'm using SSH mode to connect to a remote server. SSH itself works, but MySQL Compare is not able to connect to MySQL afterwards.
Error Message:
"Error Connecting to Database
Can't connect to MySQL server on '127.0.0.1' (10061): Server did not respond within the specified timeout interval"
But when I ssh to the server manually, using the same user as MySQL Compare does, and run...
$ mysql --host=127.0.0.1 --port=3306 --user=$USER --password=$PW
... it works.
Question:
Does MySQL Compare rely on any other settings on the server, or is it basically running just a command like the one I've posted above?
(I'm using MySQL Compare 1.0.0.425)
Thanks a lot!
Comments
MySql Compare can connect using SSH. You can see the settings in the "SSH" tab on the connect window. It can accept either a keyfile or a username/password combination.
The connection is managed using a third-party component from another company so I don't have detailed information about how it works, but if you can provide any further information about the connection failure, I can take it up with them.
thanks for your reply, but I guess there is a little misunderstanding.
I'm already using the SSH functionality of MySQL Compare to login to a remote server and to a database afterwards. No third-party component involved here.
Again, my problem is: MySQL compare succeeds doing the first step (ssh login to the defined server), but then no connection to the local mysql server can be established. But since the login to mysql works if you do it manually (see my last post), my hunch is that MySQL Compare relies on some system configuration instead of "just" sending the respective command. Could you comment on this, please?
Thanks!
Does that help?
so will that be ssh hostname or the hostname itself? because i have the ssh hostname by port 22 which is the DB host i am connecting to then on hostname i put localhost but i get a "can't connect to ssh server does not supprt curve25519-sha256" error which is some diffie-hellman-group-exchange-sha256 for keyexchange
I am using an RSA key file which works fine if I use MySQL Workbench, or even using C# SSH libraries for some apps I've written, but not through this Redgate tool. I have a trial edition and I'm looking to buy, but if I can't connect using a normal SSH key that works with other MYSQL client tools, I cant buy this product?