Postico icon indicating copy to clipboard operation
Postico copied to clipboard

Feature request: support users’s .ssh/config

Open beyondcompute opened this issue 6 years ago • 6 comments
trafficstars

Hello and thanks for the amazing work you do on Postico. I hope, this issue tracker is the right place for feature requests.

In our setup we’re connecting to a db via ssh tunnel using ProxyCommand. Currently I am using Secure Pipes as it makes managing tunnels easier. Otherwise I’d have to check/re-establish a tunnel every time after I wake up my laptop.

Would be good if Postico could do one of the 2 things:

  • directly support ProxyCommand
  • support user’s ssh_config. So I could provide a host name alias from there, and server address and other options, including ProxyCommand would be taken from the config

Thanks. Would make life much easier for me as now in practice I have to click several more times and use 2 apps (Postico and Secure Pipes) pretty much every time I want to connect to a db.

beyondcompute avatar Aug 20 '19 10:08 beyondcompute

Postico doesn't use OpenSSH, but it uses libssh2 instead. Unfortunately this makes it incompatible with ssh_config.

Furthermore, Postico is sandboxed, so implementing something like ProxyCommand is unlikely to be possible in general.

What does your ProxyCommand look like? It may be possible to add a feature for your specific use case, depending on what you use ProxyCommand for.

jakob avatar Sep 20 '19 07:09 jakob

Hello! Currently it looks like this:

ProxyCommand ssh -W %h:%p something.domain.com

(At the moment I actually resorted to using autossh to keep the tunnels always open which feels highly suboptimal though spares me the need to re-establish the tunnels multiple times a day).

beyondcompute avatar Sep 20 '19 08:09 beyondcompute

OK, if I understand this is equivalent to a ProxyJump directive, ie.

ProxyJump something.domain.com

Supporting ProxyJump should be possible in principle, the biggest issue would probably be designing a UI for it.

jakob avatar Sep 20 '19 08:09 jakob

Sounds good!

If there was a text config for the app or something like that I could test if it works even before the UI is in place. 🤷‍♂️

Anyway, thank you and I am looking forward to even more awesomeness in Postico!

beyondcompute avatar Sep 20 '19 08:09 beyondcompute

Definitely would like this. My organization uses some host files with domain aliases to ease developers' lives but Postico doesn't seem to be aware of those. I was under the impression that this was sorta universal once you established it but if it's using it's own bundled binary for ssh and is sandboxed I guess I can kinda see that, but frankly I thought the host resolution was done at the OS level. Oh well... regardless, I support this feature if it ever makes it onto the road map :)

voltechs avatar Jan 25 '22 19:01 voltechs

I'm eagerly awaiting this feature. Is this still planed?

StephanHoyer avatar Nov 17 '22 09:11 StephanHoyer