docs/content/stable/yugabyte-cloud/cloud-connect/connect-client-shell.md
Connect to your YugabyteDB cluster database from your desktop using the YugabyteDB client shells installed on your computer.
| Client | API | Description |
|---|---|---|
| ysqlsh | YSQL | SQL shell for interacting with YugabyteDB using PostgreSQL-compatible YSQL API. |
| ycqlsh | YCQL | CQL shell for interacting with YugabyteDB using Cassandra-compatible YCQL API. |
Because YugabyteDB is compatible with PostgreSQL and Cassandra, you can also use psql and third-party tools to connect.
To connect a desktop client to a YugabyteDB Aeon cluster, you need to do the following:
Before you can connect using a shell or other client, you need to add your computer to the cluster IP allow list.
By default, clusters deployed in a VPC do not expose any publicly-accessible IP addresses. To add public IP addresses, enable Public Access on the cluster Settings > Network Access tab. Alternatively, use the Cloud shell instead.
For more information, refer to IP allow list.
YugabyteDB Aeon clusters have TLS/SSL (encryption in-transit) enabled. You need to download the cluster certificate to your computer.
For information on SSL in YugabyteDB Aeon, refer to Encryption in transit.
Use the ysqlsh and ycqlsh shells to connect to and interact with YugabyteDB using the YSQL and YCQL APIs respectively. You can download and install the YugabyteDB client shells and connect to your database using the following steps for either YSQL or YCQL.
<ul class="nav nav-tabs nav-tabs-yb"> <li > <a href="#ysqlsh" class="nav-link active" id="ysqlsh-tab" data-bs-toggle="tab" role="tab" aria-controls="ysqlsh" aria-selected="true"> <i class="icon-postgres" aria-hidden="true"></i> ysqlsh </a> </li> <li> <a href="#ycqlsh" class="nav-link" id="ycqlsh-tab" data-bs-toggle="tab" role="tab" aria-controls="ycqlsh" aria-selected="false"> <i class="icon-cassandra" aria-hidden="true"></i> ycqlsh </a> </li> </ul> <div class="tab-content"> <div id="ysqlsh" class="tab-pane fade show active" role="tabpanel" aria-labelledby="ysqlsh-tab"> {{% includeMarkdown "connect/ysql.md" %}} </div> <div id="ycqlsh" class="tab-pane fade" role="tabpanel" aria-labelledby="ycqlsh-tab"> {{% includeMarkdown "connect/ycql.md" %}} </div> </div>To connect using psql, first download the CA certificate for your cluster by clicking Connect, selecting YugabyteDB Client Shell, and clicking Download CA Cert. Then use the following connection string:
psql --host=<HOST_ADDRESS> --port=5433 \
--username=<DB USER> \
--dbname=yugabyte \
--set=sslmode=verify-full \
--set=sslrootcert=<ROOT_CERT_PATH>
Replace the following:
<HOST_ADDRESS> with the value for host as shown under Connection Parameters on the Settings > Infrastructure tab for your cluster.<DB USER> with your database username.yugabyte with the database name, if you're connecting to a database other than the default (yugabyte).<ROOT_CERT_PATH> with the path to the root certificate on your computer.For information on using other SSL modes, refer to SSL modes in YSQL.
Because YugabyteDB is compatible with PostgreSQL and Cassandra, you can use third-party clients to connect to your YugabyteDB clusters in YugabyteDB Aeon.
To connect, follow the client's configuration steps for PostgreSQL or Cassandra, and use the following values:
Your client may also require the use of the cluster's certificate. Refer to Download the cluster certificate.
For detailed steps for configuring popular third party tools, see GUI clients.