<@U04S8PLJWMT> when connecting airbyte cloud to th...
# ask-ai
f
@kapa.ai when connecting airbyte cloud to the sql server source via SSH, getting the following error: Configuration check failed State code: 08S01; Message: The TCP/IP connection to the host 127.0.0.1, port 45189 has failed. Error: "The driver received an unexpected pre-login response. Verify the connection properties and check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. This driver can be used only with SQL Server 2005 or later.". ClientConnectionId:421adf98-c019-423e-8ed3-fa902997096a
k
The error message you are seeing: > State code: 08S01; Message: The TCP/IP connection to the host 127.0.0.1, port 45189 has failed. Error: "The driver received an unexpected pre-login response. Verify the connection properties and check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. This driver can be used only with SQL Server 2005 or later." suggests that Airbyte Cloud is unable to establish a proper connection to your SQL Server instance via the SSH tunnel. Here are some key points and troubleshooting steps based on the knowledge sources: 1. Verify SSH Tunnel Configuration When using Airbyte to connect to SQL Server via SSH, ensure that: - The SSH tunnel is correctly set up to forward the local port (in this case, 45189) to the actual SQL Server host and port. - The SQL Server instance is running and accessible from the bastion (jump) host. - The port you are forwarding to is the correct SQL Server port (default is 1433, unless you are using a named instance or custom port). Airbyte expects the SSH tunnel to forward a local port to the SQL Server's actual listening port. If the tunnel is misconfigured (e.g., forwarding to the wrong host/port or the SQL Server is not listening on the forwarded port), you may see this error. Double-check your SSH tunnel settings in the Airbyte source configuration and on your bastion host. For more details on SSH tunnel setup, see the documentation: [Connection to MSSQL via an SSH Tunnel](https://docs.airbyte.com/integrations/sources/mssql#connection-to-mssql-via-an-ssh-tunnel). 2. Check SQL Server Version The error also mentions, "This driver can be used only with SQL Server 2005 or later." Ensure your SQL Server version is 2005 or newer, as older versions are not supported. 3. Validate SQL Server Network Configuration - Make sure SQL Server is configured to accept TCP/IP connections. - Confirm that the SQL Server is listening on the expected port and that there are no firewalls blocking the connection. - If you are using a named instance, ensure that the port is correctly specified and that the SQL Server Browser service is running, or use the explicit port number in your configuration. There are known issues with connecting to named instances if the port is not specified or if the browser service is not available [[MSSQL connector fails to connect to a Named Instance](https://github.com/airbytehq/airbyte/issues/22359)]. 4. Test the Tunnel Manually From the Airbyte Cloud environment (or a similar environment), try to manually establish the SSH tunnel and connect to the SQL Server using a SQL client to verify that the tunnel and SQL Server are both working as expected. If after checking all the above you still encounter issues, please provide more details about your SSH tunnel configuration and SQL Server setup. The knowledge sources do not provide a specific solution for this exact error, but the above steps are directly supported by the documentation and common troubleshooting practices for Airbyte's SSH tunnel connections to SQL Server. If you need more detailed guidance on configuring the SSH tunnel in Airbyte, refer to the official documentation: [Connection to MSSQL via an SSH Tunnel](https://docs.airbyte.com/integrations/sources/mssql#connection-to-mssql-via-an-ssh-tunnel).