# Authentication Failure while connecting Database using SSH tunnel

When attempting to connect a Warehouse to Daton via an SSH tunnel, the following error occurs:

```
SSH_MSG_DISCONNECT: 2 Too many authentication failures
```

### Solution: <a href="#solution-0" id="solution-0"></a>

While configuring the destination, if the SSH tunnel option is chosen,

1\. Copy the SSH Public Key.

<figure><img src="https://static.helpjuice.com/helpjuice_production/uploads/upload/image/16494/4275568/image20240731-106-8cir9b.png" alt="" width="450"><figcaption></figcaption></figure>

2\. Login to SSH server.&#x20;

3\. Paste the public Key in authorised\_keys file.

Run the following command and then paste the key:

```
vi .ssh/authorized_keys 
```

4\. After Pasting, come back to Daton and click on Next.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/faqs/authentication-failure-while-connecting-database-using-ssh-tunnel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
