MySQL SSH Tunnel connection failing due to timeout
dsofeir opened this issue · comments
I am trying to connect to a a MariaDB server via SSH tunnel and the connection is failing with error "Connection Error - Handshake inactivity timeout". It works intermittently when the server is quick to respond, but the SSH connection usually takes 15-20secs to establish which is why I am getting the timeout, as I can see from the logs the timeout is 10secs.
I have looked everywhere to try and set the timeout higher, but to no avail. It is also confusing because the documentation for the SSH library used in sqlectron (https://github.com/mscdex/ssh2) says the default timeout is 20secs.
Please find log output from sqlectron below:
Running sqlectron v1.29.0, OpenSUSE Tumbleweed, kernel 4.15.5-1.2
Does it still happening? In this Stack overflow question it seems that setting a higher timeout in the mysql createPool
could fix it. But it is also mentioned that this error also shows if you try to create a connection/pool with invalid login credentials (or if you pass a port number in that doesn't match your mysql port, which is typically 3306).