> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mention-me.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Up SFTP

> Add your SSH key, IP addresses and folders in Mention Me, and optionally set up encryption, to exchange files over SFTP.

export const AdminOnly = () => <Info>
    This page is visible to organisation <strong>admins</strong> only. If you
    see <strong>You do not have permission to view this page</strong>, ask an
    admin to make the change, or to invite you with the Admin role.
  </Info>;

<AdminOnly />

To exchange files with Mention Me over SFTP, add your SSH public key and the IP addresses you will connect from, then create the folders (feeds) you need. You can also encrypt your feeds.

## Add Your SSH Key and IP Addresses

<Frame caption="The SSH keys & IP page, with SSH public keys and the IP address allowlist.">
  <img
    src="https://mintcdn.com/mentionme/kgVB-NOv7qaOtEjq/images/knowledge-app/settings/integrations/ssh-keys.png?fit=max&auto=format&n=kgVB-NOv7qaOtEjq&q=85&s=e72494168a42779a1143a73b47af915d"
    alt="SSH keys and IP address allowlist on the SSH keys & IP
page"
    width="2844"
    height="1578"
    data-path="images/knowledge-app/settings/integrations/ssh-keys.png"
  />
</Frame>

<Steps>
  <Step title="Open SSH Keys and IP">
    Go to **Settings > Integrations & data > Data feeds**, then select **SSH
    keys & IP**.
  </Step>

  <Step title="Add an SSH Key">
    Under **SSH public keys**, click **Add SSH key**. Paste your SSH public key
    (for example, one starting `ssh-ed25519` or `ssh-rsa`), then click **Submit
    key**. This sends your key to the Mention Me team.
  </Step>

  <Step title="Add IP Addresses">
    Under **IP address allowlist**, click **Add IP addresses**. Enter the public
    IP addresses or CIDR ranges you will connect from, then click **Submit
    allowlist**. This sends your addresses to the Mention Me team. Private
    (internal) addresses such as `10.x`, `172.16-31.x` and `192.168.x` can't be
    added.
  </Step>

  <Step title="Wait for Approval">
    The Mention Me team applies your SSH key and IP addresses. This can take up
    to **two working days**.
  </Step>
</Steps>

## Add Your Folders

Each folder on the SFTP server is a **feed**. Inbound feeds are for files you send to Mention Me. Outbound feeds are for reports Mention Me sends to you.

<Frame caption="The Feeds setup page, with Add inbound feed and a feed pending setup.">
  <img
    src="https://mintcdn.com/mentionme/wdhAZVZcU1AoWwYx/images/knowledge-app/settings/integrations/data-feeds.png?fit=max&auto=format&n=wdhAZVZcU1AoWwYx&q=85&s=3d8edf3a08163087babb296994c537ae"
    alt="Feeds setup page showing an inbound feed with Pending setup
status"
    width="2544"
    height="1644"
    data-path="images/knowledge-app/settings/integrations/data-feeds.png"
  />
</Frame>

<Steps>
  <Step title="Open Feeds Setup">
    Go to **Settings > Integrations & data > Data feeds**, then select **Feeds
    setup**.
  </Step>

  <Step title="Add a Feed">
    Click **Add inbound feed** or **Add outbound feed**.
  </Step>

  <Step title="Complete the Folder Details">
    Enter a **Name** and **Description** for the folder. To encrypt it, turn on
    **Mark this feed as encrypted**. An encrypted inbound feed rejects files
    that aren't encrypted with its key. An encrypted outbound feed won't send
    you files until it has an active public key.

    <Frame caption="The Add inbound feed dialog, with the feed marked as encrypted.">
      <img
        src="https://mintcdn.com/mentionme/wdhAZVZcU1AoWwYx/images/knowledge-app/settings/integrations/add-inbound-feed.png?fit=max&auto=format&n=wdhAZVZcU1AoWwYx&q=85&s=d6ad42e01115beaa6b335456ea8d8245"
        alt="Add inbound feed dialog with Name, Description and Mark this feed as
encrypted turned on"
        width="1568"
        height="1973"
        data-path="images/knowledge-app/settings/integrations/add-inbound-feed.png"
      />
    </Frame>
  </Step>

  <Step title="Create the Feed">
    Click **Create feed**. Repeat for each folder you need.
  </Step>

  <Step title="Wait for the Feed to Be Set Up">
    A new feed shows **Pending setup** while the Mention Me team sets it up on
    the SFTP server. This can take up to **two working days**. It changes to
    **Active** when it is ready to transfer files.
  </Step>
</Steps>

## Set Up Encryption (Optional)

If you marked a feed as encrypted, give it a PGP key. Go to **Settings >
Integrations & data > Data feeds**, then select **Encryption keys**.

<Frame caption="The Encryption keys page, with Inbound and Outbound tabs.">
  <img
    src="https://mintcdn.com/mentionme/wdhAZVZcU1AoWwYx/images/knowledge-app/settings/integrations/encryption-keys.png?fit=max&auto=format&n=wdhAZVZcU1AoWwYx&q=85&s=2a9c05f93ea4050462046462e50e49d8"
    alt="Encryption keys settings on the Inbound tab, with a feed key marked
Active"
    width="2544"
    height="1190"
    data-path="images/knowledge-app/settings/integrations/encryption-keys.png"
  />
</Frame>

<Tabs>
  <Tab title="Inbound feeds">
    For files you send to Mention Me, Mention Me generates the key pair and you
    encrypt your files with the public key.

    <Steps>
      <Step title="Generate an Inbound Key">
        On the **Inbound** tab, click **Generate inbound key**.
      </Step>

      <Step title="Assign It to a Folder">
        Under **Feed**, select the encrypted folder. Or turn on **Set as your
        default key (covers all inbound feeds)** to use one key for every
        inbound feed without its own key.

        <Frame caption="Generating an inbound key for a feed.">
          <img
            src="https://mintcdn.com/mentionme/wdhAZVZcU1AoWwYx/images/knowledge-app/settings/integrations/generate-inbound-key.png?fit=max&auto=format&n=wdhAZVZcU1AoWwYx&q=85&s=1645d7cae3b720b0d1741a90ee1da096"
            alt="Generate inbound encryption key dialog with a feed
selected"
            width="1568"
            height="1460"
            data-path="images/knowledge-app/settings/integrations/generate-inbound-key.png"
          />
        </Frame>
      </Step>

      <Step title="Download the Public Key">
        Click **Generate key**, then **Download public key**. Use it to encrypt
        the files you send to that folder.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Outbound feeds">
    For reports Mention Me sends to you, upload your own PGP public key and
    Mention Me encrypts the files with it.

    <Steps>
      <Step title="Import an Outbound Key">
        On the **Outbound** tab, click **Import outbound key**.
      </Step>

      <Step title="Assign It to a Folder">
        Under **Feed**, select the encrypted folder. Or turn on **Set as your
        default key (covers all outbound feeds)** to use one key for every
        outbound feed without its own key.

        <Frame caption="Importing an outbound key for a feed.">
          <img
            src="https://mintcdn.com/mentionme/wdhAZVZcU1AoWwYx/images/knowledge-app/settings/integrations/import-outbound-key.png?fit=max&auto=format&n=wdhAZVZcU1AoWwYx&q=85&s=5ce320e5dfd840fa2eef8d4cf52bb9a7"
            alt="Import outbound encryption key dialog with a feed selected and a
field for the public key"
            width="1568"
            height="1865"
            data-path="images/knowledge-app/settings/integrations/import-outbound-key.png"
          />
        </Frame>
      </Step>

      <Step title="Paste Your Public Key">
        Paste your PGP public key under **Public key**, then click **Import
        key**.
      </Step>
    </Steps>
  </Tab>
</Tabs>

See [How to Manage Encryption Keys](/knowledge-app/settings/integrations/encryption-keys) for rotating keys and key history.

## Connect

Once your SSH key and IP addresses are approved, you can connect. See [SFTP Connection](/developer-docs/integration/mention-me/sftp-connection) for connection details and the folder structure.

## See Also

<CardGroup cols={2}>
  <Card title="How to Set Up Data Feeds" icon="network-wired" href="/knowledge-app/settings/integrations/data-feeds">
    Add inbound and outbound SFTP folders.
  </Card>

  <Card title="How to Manage SSH Keys and Allowed IPs" icon="key" href="/knowledge-app/settings/integrations/ssh-keys">
    Copy, review or add more keys and IP addresses.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.