sqlectron / sqlectron-gui

A simple and lightweight SQL client desktop with cross database and platform support.
https://sqlectron.github.io/
MIT License
4.58k stars 525 forks source link

Support for loading ssh configuration from `~/.ssh/config` #697

Open sabotenpillow opened 2 years ago

sabotenpillow commented 2 years ago

Does SQLECTRON support for loading ssh configuration from ~/.ssh/config?

I want to connect to DB via multi ssh tunnels. So I configured ssh configuration in ~/.ssh/config as below and I tried connecting to DB via hostA. But when I did it, connection error has occurred with a message Error invoking remote method 'DB_CONNECT': Error: getaddrinfo ENOTFOUND hostA. So it seems that ssh configuration is not loaded. Is there any way to connect to DB via multi ssh tunnels?

Host hostX
  HostName 192.168.10.10
  User username
  IdentityFile ~/.ssh/id_rsa

Host hostA
  HostName 192.168.20.10
  User username
  IdentityFile ~/.ssh/id_rsa
  ProxyCommand ssh -W %h:%p hostX

my environment

OS: Ubuntu 20.04
SQELECTRON: 1.37.1
rvveber commented 2 years ago

upvote!