sqlectron-gui icon indicating copy to clipboard operation
sqlectron-gui copied to clipboard

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

Open sabotenpillow opened this issue 3 years ago • 1 comments

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

sabotenpillow avatar Feb 23 '22 11:02 sabotenpillow

upvote!

rvveber avatar Oct 28 '22 10:10 rvveber