Dbeaver ssh tunnel unexpected end of stream. 0. 5 Operating System No response Database and driver No response Steps to reproduce 1. The database is hosted on a private subnet but it's accessible through a bastion host. DBeaver Version 24. Jan 26, 2024 · issue type on Feb 28, 2025 masgo mentioned this on Sep 30, 2025 MariaDB via SSH tunnel fails with: unexpected end of stream, read 0 bytes from 4 (socket was closed by server) #39301 May 27, 2024 · Sometime EOF Exception. If I run: Oct 1, 2023 · I am trying to connect to an AWS hosted (RDS) MariaDB database (engine version 10. 14). Unsupported SSH protocol version: dbeaver only supports SSH protocol version 2. So I am able to connect to the remote db with an ssh connection and then use the command line like this: // connect to mysql with terminal. 1 Distrib 10. Configure SSH tunnels in DBeaver for secure database access with authentication and port forwarding. DBeaver is able to show log trying to connection, but I get these log messages: In this article, we will discuss the causes of the “can’t initialize tunnel” error in DBeaver and provide step-by-step instructions on how to fix it. 6. Jun 11, 2025 · We have tested using DBeaver and HeidiSQL, but we are encountering the following error during connection: We also attempted an SSH port forwarding via terminal, forwarding the remote port to localhost, but the result was the same — the connection is closed immediately. 15-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper my ssh tunnel set up command:. Sep 29, 2025 · Steps to reproduce try to connect to DB via SSH tunnel fails with error: Could not connect to 127. 4 using both MySQL Workbence / DBeaver CE I’m unable to connection to my Leap 15. ) After long idle time connection disconnected 3. DBeaver MariaDB via SSH tunnel fails with: unexpected end of stream, read 0 bytes from 4 (socket was closed by server) #39809 masgo started this conversation in General edited masgo Mar 7, 2025 · unexpected end of stream, read 0 bytes from 4 (socket was closed by server) Could not connect to 127. I can usually just choose to disconnect and then connect again and that works. ) Open connection using ssh tunnel 2. 18. Only after restart dbeaver i can connect. Nov 10, 2023 · I've been using DBeaver for years and after a recent update, my connections keep getting disconnected. 0 too). The ssh-tunneling itself seems to work. 04 bastion host but not an Ubuntu 22. 4 used as a mysql server, will have multiple VM Web Servers connection to it. Just can't do it via Dbeaver. Aug 31, 2022 · From Windows 10 Pro / Leap 15. If I try the same with ssh-tunneling in DBeaver I get an connection error. 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. 1 or is unsolved. 2:3308 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server) unexpected end of stream, read 0 bytes from 4 (socket was closed by server) unexpected end of stream, read 0 bytes from 4 (socket was closed by server)" The port is 3308, NOT 3306 - so I verified this is correct. ) try t reconnect Only with SSH tunnel having the issue Additional context The connection Sep 30, 2023 · the exact same python script I used on my MacOS machine The DBeaver client returns the following error: unexpected end of stream, read 0 bytes from 4 (socket was closed by server) Note: mysql --version returns mysql Ver 15. Problem there was either localhost vs 127. I use an SSH tunnel t Jun 21, 2022 · Seeing the exact same issue here. 1:31987 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server) Nov 13, 2023 · Can't connect to mySQL with ssh-tunnel, but local connection wokrs well Asked 2 years, 3 months ago Modified 2 years, 2 months ago Viewed 546 times Mar 29, 2023 · "Could not connect to 127. Mar 16, 2023 · issue type on Feb 28, 2025 masgo mentioned this on Sep 30, 2025 MariaDB via SSH tunnel fails with: unexpected end of stream, read 0 bytes from 4 (socket was closed by server) #39301 Sep 17, 2020 · In Linux i get "unexpected end of stream, read 0 bytes from 4 (socket was closed by server)", was working until today. 2. I'm running DBeaver on Linux, so I don't have any other options besides JSch. We will also cover some additional troubleshooting tips that may help you resolve other connection issues with DBeaver. We can tunnel DBeaver via an Ubuntu 20. Nov 23, 2025 · However, setting up SSH tunnels can sometimes lead to frustrating connection errors, even for experienced users. This guide will walk you through configuring SSH tunneling in DBeaver step-by-step and troubleshoot the most common errors you might encounter. Manually creating the tunnel via SSH command works just fine. Windows Version still is running (7. 04 bastion host. 1:55801 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server) Jan 30, 2024 · However once the SSH tunnel is established, the connection to the database fails: Could not connect to 127. Incorrect SSH configuration: If the SSH configuration on your computer is incorrect, dbeaver will not be able to establish a tunnel to the remote server.
wgl wju bto zeq suf jup epi upj des gmu kcd tkk kaj skt hse