# Troubleshooting SSH tunnel connection to PostgreSQL data warehouse - dbt debug --connection is not supported

**URL:** <https://discourse.getdbt.com/t/troubleshooting-ssh-tunnel-connection-to-postgresql-data-warehouse-dbt-debug-connection-is-not-supported/19616>\
**Category:** Help\
**Tags:** dbt-cloud\
**Created:** [June 5, 2025, 10:32am UTC](https://discourse.getdbt.com/t/troubleshooting-ssh-tunnel-connection-to-postgresql-data-warehouse-dbt-debug-connection-is-not-supported/19616 "2025-06-05T10:32:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bich.ngoc.k55b](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/bich.ngoc.k55b/32/5231_2.png) [@bich.ngoc.k55b](https://discourse.getdbt.com/u/bich.ngoc.k55b)\
**Post date:** [June 5, 2025, 10:32am UTC](https://discourse.getdbt.com/t/troubleshooting-ssh-tunnel-connection-to-postgresql-data-warehouse-dbt-debug-connection-is-not-supported/19616/1 "2025-06-05T10:32:51Z")

</div>

## The problem I’m having

I’m trying to test the connection to my data warehouse using the dbt CLI on macOS with version `0.40.3`, but the command `dbt debug --connection` is **not recognized**.

When I run:

```auto
dbt debug --connection

```

I get the following error:

```auto
Error: unknown flag: --connection
Usage:
  dbt debug [flags]

Flags:
  -h, --help help for debug
      --project-paths Display configured project paths

Global Flags:
      --log-format LogFormat The log format, either json or plain. (default plain)
      --log-level LogLevel The log level, one of debug, info, warning, error or fatal. (default info)
      --no-color Disables colorization of the output.
  -q, --quiet Suppress all non-error logging to stdout.
      --show-all-deprecations By default, each type of a deprecation warning is only shown once. Use this flag to show all deprecation warning instances.

```

* * *

## The context of why I’m trying to do this

- I’m using **macOS**.
- I have a **dbt Cloud account with two licenses**.
- I’m setting up a \*\*new dbt project \*\* using the CLI (version `0.40.3`).
- I want to test the connection between my local dbt and the data warehouse.

When I run just `dbt debug`, I see output including:

- Local configuration
- Cloud configuration
- Postgres connection details

However, no real confirmation of whether the data warehouse connection is successful.

## What I’ve already tried

When I try to open **dbt Cloud Studio** , I get this error:

> “Failed to set up SSH tunnel. Please double check your connection settings.”

There is **no detailed log or error message** , so I’m not sure how to debug it.

## Some example code or error messages

```auto
Put code inside backticks
  to preserve indentation
    which is especially important 
      for Python and YAML! 

```
