> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Redshift SSH Connector

## Intro

Amazon Redshift is a hosted data warehouse project that is part of the larger cloud computing platform Amazon Web Services.  You can use Domo's Amazon Redshift SSH Connector to create a secure, encrypted connection with your Redshift database to bring your data into Domo and start making better decisions. Simply input your own SSH credentials and write a query to pull the data you need, and ready to go. For more information about the Redshift API, visit their website. ([http://docs.aws.amazon.com/redshift/...\_commands.html](http://docs.aws.amazon.com/redshift/latest/dg/c_SQL_commands.html "http://docs.aws.amazon.com/redshift/latest/dg/c_SQL_commands.html") )

The Amazon Redshift SSH connector is a "Database" connector, meaning it retrieves data from a database based on a query. In the Data Center, you can access the connector page for this and other Database connectors by clicking **Database** in the toolbar at the top of the window.

You connect to your Redshift database in the Data Center. This topic discusses the fields and menus that are specific to the Redshift SSH connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Data Connector](/s/article/360042926274).

<Note>
  **Note:** Depending on your network's structure, you may need to whitelist any IP addresses necessary for the data connector to retrieve data. Contact your IT administrator for assistance.
</Note>

## Prerequisites

To connect to a Redshift database and create a DataSet, you must have the following:

* The hostname of the UNIX server you are SSH-tunneling through
* The SSH username and password for your UNIX account
* The SSH port number
* The SSH private key
* The Redshift database hostname or IP address
* The Redshift database name
* The username and password you use to log into your Redshift database
* The port number for the Redshift database
* The Redshift database name

CA certificate text or URL path is required *only* if you select **Certificate String** or **URL Path**, respectively, in the **Certificate Format** menu.

<Note>
  **Note: Domo does not support the SSH keys generated using ssh-keygen. The SSH keys need to be the DES or RSA keys (in PEM format) generated by OpenSSL.**
</Note>

### Creating a Redshift account

To create a Redshift user account, contact your Redshift Database Administrator (DBA) and have them follow these directions:

By default, only the master user that you created when you launched the cluster has access to the initial database in the cluster. To grant other users access, you must create one or more user accounts. Database user accounts are global across all the databases in a cluster; they do not belong to individual databases.

Use the CREATE USER command to create a new database user. When you create a new user, you specify the name of the new user and a password. A password is required. It must have between 8 and 64 characters, and it must include at least one uppercase letter, one lowercase letter, and one numeral.

For example, to create a user named GUEST with password ABCd4321, issue the following command:

`create user guest password 'ABCd4321';`

### Whitelisting IP addresses

Before you can connect to a Redshift database, you must also whitelist a number of IP addresses on your database server on the port you want to connect to. For the full list of IP addresses, see [Whitelisting IP Addresses for Connectors](/s/article/360043630093 "Whitelisting IP Addresses for Connectors").

## Connecting to Your Redshift Database Using SSH

This section enumerates the options in the **Credentials** and **Details** panes in the Redshift SSH Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector.](/s/article/360042926274)

### Credentials Pane

This pane contains fields for entering credentials to connect to your database. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a"><thead><tr><th colspan="1" rowspan="1"><p> Field </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> SSH Server Hostname </p></td><td colspan="1" rowspan="1"><p> Enter the hostname of the UNIX server you are SSH-tunneling through. </p></td></tr><tr><td colspan="1" rowspan="1"><p> SSH Username </p></td><td colspan="1" rowspan="1"><p> Enter the username for your UNIX account. </p></td></tr><tr><td colspan="1" rowspan="1"><p> SSH Password </p></td><td colspan="1" rowspan="1"><p> Enter the password for your UNIX account. </p></td></tr><tr><td colspan="1" rowspan="1"><p> SSH Port </p></td><td colspan="1" rowspan="1"><p> Enter the port number used for SSH. </p></td></tr><tr><td colspan="1" rowspan="1"><p> SSH Private Key </p></td><td colspan="1" rowspan="1"><p> Enter the SSH private key. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Hostname </p></td><td colspan="1" rowspan="1"><p> Enter the Redshift database hostname or URL. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Name </p></td><td colspan="1" rowspan="1"><p> Enter the Redshift database name. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Username </p></td><td colspan="1" rowspan="1"><p> Enter your username for the Redshift database. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Password </p></td><td colspan="1" rowspan="1"><p> Enter your password for the Redshift database. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Port </p></td><td colspan="1" rowspan="1"><p> Enter the Redshift database port number. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Certificate Format </p></td><td colspan="1" rowspan="1"><p> Select the certificate format. If you do not want to include a certificate, select <b> No Certificate </b>. If you select <b> Certificate String </b>, you must paste the text for your certificate in the <b> Certificate </b> field. If you select <b> URL Path </b>, you must enter the URL where your certificate is located in the <b> Certificate </b> field. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Certificate </p></td><td colspan="1" rowspan="1"><p> Paste the text for your CA certificate or enter the URL where your certificate is located. This is optional. If you do not want to include a certificate, select <b> No Certificate </b> in the <b> Certificate Format </b> menu. </p></td></tr></tbody></table>

Once you have entered valid Redshift credentials, you can use the same account any time you go to create a new Redshift SSH DataSet. You can manage connector accounts in the Accounts tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054 "Managing User Accounts for Connectors").

### Details Pane

In this pane you create an SQL query to pull data from your database. You can also choose a specific database table and columns and specify which columns you want to appear in your report.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a"><thead><tr><th colspan="1" rowspan="1"><p> Menu </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Query </p></td><td colspan="1" rowspan="1"><p> Enter the Structured Query Language (SQL) query to use in selecting the data you want. For example: </p><p><span class="mt-font-courier-new"> select \* from Employee </span></p></td></tr><tr><td colspan="1" rowspan="1"><p> Fetch Size </p></td><td colspan="1" rowspan="1"><p> Enter the fetch size for memory performance. If you leave this blank, a default value of 1000 is used. If you get an "Out of Memory" error, decrease the fetch size. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Database Tables </p></td><td colspan="1" rowspan="1"><p> Select the database table you want to appear in your report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Table Columns </p></td><td colspan="1" rowspan="1"><p> Select all table columns you want to appear in your report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Query Helper </p></td><td colspan="1" rowspan="1"><p> Based on the selected columns in the <b> Table Columns </b> field, the Query Helper builds a sample query for you. You can revise the query if desired. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Boolean Format </p></td><td colspan="1" rowspan="1"><p> Select the Boolean format to be used. The following table describes the available formats: </p><table class="mt-responsive-table"><tbody><tr><td class="mt-noheading" colspan="1" rowspan="1"><p> 1/0 </p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> True values return <span class="mt-font-courier-new"> 1 </span>, and false values return <span class="mt-font-courier-new"> 0 </span>. </p></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p> t/f </p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> True values return <span class="mt-font-courier-new"> t </span>, and false values return <span class="mt-font-courier-new"> f </span>. </p></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p> T/F </p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> True values return <span class="mt-font-courier-new"> t </span>, and false values return <span class="mt-font-courier-new"> f </span>. </p></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p> true/false </p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> True values return <span class="mt-font-courier-new"> true </span>, and false values return <span class="mt-font-courier-new"> false </span>. </p></td></tr></tbody></table></td></tr><tr><td colspan="1" rowspan="1"><p> Query Timeout </p></td><td colspan="1" rowspan="1"><p> Enter the connector timeout value in minutes. </p></td></tr></tbody></table>

### Other Panes

For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Data Connector](/s/article/360042926274).

## Troubleshooting

If you run into connection issues...

* Verify the connection works using pgAdmin.
* Confirm all of the necessary Domo IPs have been whitelisted (see
  [Whitelisting IP addresses,](#h_17aaa1b7-c06f-4970-ae93-758d1923ce4b) above).
* Run a profile on the SQL query.
