-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] "over ssh" is not respecting ssh config #166
Comments
Hey @peh, thanks for your feedback. I'm an ssh-config user. I use it every day with more than 20 servers and it saves a lot of time for me. Lets me see if I can do it. |
any progress? for now i am stuck with an ssh tunnel but it would be great to have the app doing everything for. PS: i still bought the app it's to awesome to not pay for it! |
Some users have requested this feature too, so I moved it to work in progress. You will see it soon 😄 |
Lovely, great that it's work-in-progress now. I would definitely like to use a host name from my ssh-config instead of providing server IP (which is not very human friendly). Does the "Import private key" actually import/copy the key file somewhere or just saves the key file path? The "import" is a bit confusing. I think the following would be clearer: Actually, if the "Over SSH -> Server" is not an IP (but a host from ssh-config), it would be sweeet if TablePlus took the IdentityFile path from the SSH config file, based on the host name. But that's an extra feature ;). PSequel allows for host name (instead of IP), but you still have to provide identity file path manually. Hope this helps. Just purchased TablePlus, looking forward to making great use of it :). |
Hey @peh @mkarnicki it respects ssh/config now: |
@huyphams (I removed my previous comment, chose the wrong host). I confirm this works GREAT! Thank you, I'm excited about TablePlus :)! |
I think I have found one minor bug, when disconnecting and reconnecting the ssh connection the database connection is not reconnected. |
Thanks @davidolrik, but is it hang or something? |
I can't confirm that, seems all is working well. @davidolrik please try to be as detailed as you can in your follow up comment, thanks. |
Yes it hangs, the timer in the bottom left just keeps counting away. It also happens if I leave the window open, and don't use it for extended periods of time. |
hey, thanks for your helpful information.
If the connection failed while you sending a query, TablePlus also tries to reconnect first. Seems TablePlus got trouble with ssh, everything is hanging because it waiting too long for ssh-timeout. |
I think I know what the problem is. The MySQL I'm connecting to is configured to aggressively close connections if they aren't used. So the bug must be in the statement executer, that fails to notice that the connection has gone bad. |
I have both of those options turned on. |
That's too bad, I set the ping is 30 seconds 🤣probably I will put a config here, then users can set their period. |
I don't have this problem in Sequel Pro, maybe they are pinging the connection before executing the query. |
Sequel Pro uses sshd for tunneling see here, it's handled automatically by OS, and probably they sent ping more frequency. Thank you so much. |
I found a different solution. Immediately upon connecting, I execute |
It's not respecting the ssh/config for me. Is there any way to see some debug output of the connection attempt? |
I used the official API from libssh to handle the config. This is my ssh config.
The location of the config is ~/.ssh/config. |
I think I'm running into the same problem. .ssh/config
TablePlus (no manual Clicking "Connect" does "nothing". It doesn't connect and simply runs into a timeout (I think). Update: Setting "Server" to the IP and manually selecting the correct |
Hey looks like TablePlus can't handle |
@huyphams is there any work arounds? I tried explicitly importing an identity, still no dice. |
I'm trying with the IdentityFile, I will report you asap. |
I've completely emptied ~/.ssh/config, to make sure that problem isn't in additional ssh-parametres or spaces-markup, so I just added next 3 rows to ~/.ssh/config: Host localhost And result was the same. |
Hey, @itsdeezy thanks for pointing it out. We have a release tomorrow, because of time constraints so I can't ship this bugfix in that release 101. |
Hi @itsdeezy I have implemented keyboard interactive support in this build: https://www.dropbox.com/s/fghht69ib70jdpn/TablePlus.zip?dl=0 |
hey @huyphams, Any way I can run this in verbose? maybe a console mode so I can give you some logs? |
Unfortunately, I turned off the logger on production. There is no |
Does Tableplus supports these two ssh config options?
I can't get it to work on |
Since I stumbled across this ticket first and I've still tried to figure out why it's not working. I thought it might be useful to add some references to the other tickets here. If you use |
This comment helped me: |
As a user i would like my ~/.ssh/config File to be respected when using the "over ssh" option.
Having a more sophisticated SSH configuration with e.g. a bastion host that is used to proxy connections is more or less best practice in todays cloud setups.
It would be great if TablePlus would support such things.
I understand that due to Apples Sandbox we would have to select the config file manually which is perfectly fine in my eyes!
It's basically the last feature missing for me to buy a License!
The text was updated successfully, but these errors were encountered: