> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/credentials/ssh.md).

# SSH credentials

Documentation for SSH credentials. Use these credentials to authenticate SSH in n8n, a workflow automation platform.

You can use these credentials to authenticate the following nodes:

* [SSH](/integrations/builtin/core-nodes/n8n-nodes-base.ssh.md)

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* Create a remote server with SSH enabled.
* Create a user account that can `ssh` into the server using one of the following:
  * Their own [password](#using-password)
  * An SSH [private key](#using-private-key)

## Supported authentication methods <a href="#supported-authentication-methods" id="supported-authentication-methods"></a>

* [Password](#using-password): Use this method if you have a user account that can `ssh` into the server using their own password.
* [Private key](#using-private-key): Use this method if you have a user account that uses an SSH key for the server or service.

## Related resources <a href="#related-resources" id="related-resources"></a>

Secure Shell (SSH) protocol is a method for securely sending commands over a network. Refer to [Connecting to GitHub with SSH](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) for an example of SSH setup.

## Using password <a href="#using-password" id="using-password"></a>

Use this method if you have a user account that can `ssh` into the server using their own password.

To configure this credential, you'll need to:

1. Enter the IP address of the server you're connecting to as the **Host**.
2. Enter the **Port** to use for the connection. SSH uses port `22` by default.
3. Enter the **Username** for a user account with `ssh` access on the server.
4. Enter the **Password** for that user account.

## Using private key <a href="#using-private-key" id="using-private-key"></a>

Use this method if you have a user account that uses an SSH key for the server or service.

To configure this credential, you'll need to:

1. Enter the IP address of the server you're connecting to as the **Host**.
2. Enter the **Port** to use for the connection. SSH uses port `22` by default.
3. Enter the **Username** of the account that generated the private key.
4. Enter the entire contents of your SSH **Private Key**.
5. If you created a **Passphrase** for the **Private Key**, enter the passphrase.
   * If you didn't create a passphrase for the key, leave blank.
