Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MySQL - SSH tunnel auth fail #415
I've done some additional testing. On the MacOS application, it appears this is related to trying to authenticate with an SSH private key.
As an experiment, I tried setting up password authentication (really not ideal) to my database server. Doing that, SSH tunneling works.
I noticed that even though I selected a key file, the client was not showing the path to that file when next I edited the connection. It could be some problems with hidden files on MacOS preventing the client from reading the key file.
Issue is not related to file path not showing in Edit Connection screen but may cause of some private keys file encoding types and file permissions. Could you check out your authentication logs in "/var/log/auth.log" file from your server and ensure your private key has necessary permissions on your user ?
If you can tell us your server environment(os, os version, ssh config file output), we can try to create same environment because we can't reproduce same issue in our test servers.
I have the same error
I could access it using command as below
But I couldn't access Test Connection on TeamSQL
Would you please check?
I have a similar issue: when using TeamSQL v3, all my MySQL & PostgreSQL connections with SSH tunnel were working perfectly (without having to use a private key file).
When using TeamSQL v4, most of the same MySQL connections with SSH tunnel now fail with this message:
I have 4 MySQL connections with SSH tunnel : one of them still succeed to connect to the database server. After investigation, I realized that the working connection communicates with a MariaDB server v10.3.9, and the failing connections communicate with MySQL servers v5.1.73 (three different servers, but using the same software version).
EDIT : sorry for the unassignement of @barisozanguler below, it was not voluntary (a bad click on the wrong place). How is it possible?