Replies: 14 comments
-
|
@masgo Thank you for your report. Unfortunately, I cannot reproduce this issue; my SSH connection works fine. Could you please check your credentials, and if you have server logs or other log files that could help us to find out the reason, you could send us [email protected] |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
which logfiles would be helpfull? The server logs are rather empty, i probably need to set the log level higher. |
Beta Was this translation helpful? Give feedback.
-
|
I had the issue today but could resolve it by activating AllowTCPForward in ssh config, which was turned off after an update. Maybe the TestTunnel function could test the tunnel and not only the ssh connection? |
Beta Was this translation helpful? Give feedback.
-
|
@Matyro thank you. This is the solution! To summarize for others: by default sshd has
Source: https://linux.die.net/man/5/sshd_config Turns out that TurnkeyLinux adds it's own sshd config Source: Obviously ssh tunneling can not work without TCP forwarding. Further reading: CISOfy/lynis#220 |
Beta Was this translation helpful? Give feedback.
-
|
This does not work for me. @masgo can you reopen the issue? Here is the tcp config if my ssh daemon And here is my full configuration |
Beta Was this translation helpful? Give feedback.
-
|
Same for me, I checked my two servers and the ## first bounce
root@prototype ~ # sshd -T | grep tcp
tcpkeepalive yes
allowtcpforwarding yes
## final destination server
root@srv-xyz:~# sshd -T | grep tcp
tcpkeepalive yes
allowtcpforwarding yes |
Beta Was this translation helpful? Give feedback.
-
|
It was definetley the AllowTCPForward setting for me. The end of stream error usually points to a firewall blocking the connection. Can you exclude the firewall? Maybe try port-forwarding with putty and see if that works? |
Beta Was this translation helpful? Give feedback.
-
|
This must be something specific to the MariaDB connector implementation. The exact same database works with the MySQL connector (minus MariaDB exclusive features). Also as I said I reproduce on both MacOS and Windows. My database is on a locally run VM. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your report. I have reproduced it. |
Beta Was this translation helpful? Give feedback.
-
|
I have studied the problem further. It appears that after all this error is specific to the SSH layer or server-side configuration, rather than a DBeaver or MariaDB driver bug. If anyone encounters similar issues, it would be helpful if you could share any specific SSH or database settings you are using — for example:
This information may help us identify patterns or reproduce the issue in environments where the error only seems to appear with incorrect SSH configuration. |
Beta Was this translation helpful? Give feedback.
-
|
In addition to my previous posts :
No special config on mariadb that I know. Here is a light version of my SSH config in |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the discussion and for the provided answers. I am going to convert this issue to a discussion and mark the answer about TCP forwarding as an answer. |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a turnkey wordpress test-system which is nearly unchanged from the default settings. Connecting to the MariaDB database does work without SSH tunnel but not via SSH tunnel.
For testing, I have set
bind-address = *in the mariadb config and created a user which is allowed to connect from%(so from everywhere). These are obvious security problems, which is why I want to use an SSH tunnel.If i set up a connection without SSH tunneling, everything works (all settings which are not shown, are default values from DBeaver)
If I go ahead and add an SSH tunnel, the tunnel seems to work fine.
But the DB connection does not work
I also tried 127.0.0.1 instead of localhost, but it gives me the same error.
I have connections to other MariaDB servers via SSH tunnels which work fine. As well as to other DBs via SSH tunnel.
DBeaver Version
Community Edition 25.2.1.202509211659
Operating System
Windows 10
Database and driver
Steps to reproduce
Could not connect to 127.0.0.1:38940 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server)Additional context
No response
Seems to have happened bevore:
#21812 - Seems very similar. Problem there was either
localhostvs127.0.0.1or is unsolved.And again here: #19388 But here they discuss the validationQuery. Which is obviously fine, since the change which causes the error for me is the added tunnel.
#22592 seems similar, but no further details there.
Beta Was this translation helpful? Give feedback.
All reactions