Skip to main content
Skip table of contents

File Exchange Service - How to Use

This page explains how the file exchange service in Memority works and how to set it up for secure file transfers.

Service description

The file exchange service allows you to:

  • Retrieve files that Memority generates (e.g., data exports, custom reports, and logs).

  • Upload files that Memority uses for processing (e.g., data imports).

You can upload or retrieve files manually or automatically. Each client tenant stores files in its corresponding directories.

The file exchange service uses FTP technology. For security reasons, the service is only accessible through an asymmetric key authentication mechanism. The generation of these keys is detailed below.

Hierarchical structure

The file exchange service organizes files into three folders:

  • input folder — for files that the customer uploads.

    • Read/write access

  • output folder — for files that Memority uploads.

    • Read-only access

  • support folder — for files attached to support requests.

    • Read/write access

Retention period

Unless you request a different policy, files that Memority generates remain available for one week after upload.
When you upload files, Memority archives them as soon as one of Memority services processes them.

Security

The file exchange service uses asymmetric key authentication based on the SSH v2 protocol.

After subscribing to the service, you generate your own key pair:

  • The private key remains under your control. It guarantees authentication and must never be shared with a third party.

  • The public key is sent to the Memority team, who install it on the file exchange service.

The following sections describe how to generate these keys.

Prerequisites

Generate a key pair

You can generate an SSH key pair using one of the following tools:

  • ssh-keygen (on UNIX or Linux systems)

  • PuTTYgen (on Windows systems)

Most Linux distributions (e.g., CentOS, Red Hat) include ssh-keygen by default.

Generate a key pair with ssh-keygen:

  1. Open your terminal.

  2. Run the following command:

CODE
ssh-keygen -t rsa
  1. Specify the location where you want to create the keys.

    Example: /root/memority-ftp_customerKey

  2. Enter a passphrase (a password required to read the key).

image-20251020-115514.png
  1. Retrieve the public key you just created and send it to the Memority team via the Memority Support Portal.

Send only the public key. Keep your private key and passphrase secure.

In this example, the public key is stored in:

CODE
/root/memorityftp_customerKey.pub

Generate a key pair with PuTTYgen

PuTTYgen is a graphical tool for generating SSH keys on Windows. You can download it from the official PuTTY website. The program is an executable file and does not require installation.

To create your key pair:

  1. Launch PuTTYgen.

  2. Select SSH2 RSA as the key type.

  3. Set the key length to 2048 bits.

image-20251020-142714.png
  1. Click Generate, then move your mouse around the window to create randomness for the key.

image-20251020-144334.png
  1. Enter a passphrase to protect the key.

image-20251020-144506.png
  1. Click Save public key and Save private key to store each key.

PuTTYgen saves the private key in .ppk format by default. Some FTP clients may require another format.

Optional: To export the key in OpenSSH format, go the Conversions menu and select Export OpenSSH key.

  1. Send the public key to the Memority team via the Memority Support Portal.

Accessing the service

This section explains how to upload and retrieve files through the file exchange service.
You can use either a graphical FTP client on Windows or a command-line client on UNIX or Linux.

Prerequisites

Before you connect, make sure you have:

  • An FTP client that supports the SFTP protocol.

  • A username that the Memority team gives you when you subscribe to the service.

  • A pair of SSH keys that you created earlier.

    • Use your private key to log in to the FTP service.

    • Send your public key to the Memority team so they can give you access.

Connection settings

Configure your FTP client with the following details:

Environment

Host Name

Port

Protocol

Authentication

Staging

share.<tenant>.stage.memority.cloud

22

SFTP

Private key (username provided by Memority)

Production

share.<tenant>.memority.com

22

SFTP

Private key (username provided by Memority)

If your company’s security policy requires it, connect through an IPsec tunnel between your system and Memority.

Connect with a graphical FTP client

This section explains how to connect to the file exchange service using a graphical FTP client such as WinSCP or FileZilla.
This guide uses WinSCP as an example.

Steps

  1. Open WinSCP

image (8).png
  1. In the Host name field, enter the server domain: share.<tenant>.memority.com

  2. In the Username field, enter your client ID (for example, customer1).

  3. In the Port number field, enter: 22

image (9).png
  1. Click on Advanced….

image (10).png
  1. In the menu on the left, click on Authentication

  2. In the Private key file field, browse your private key and select it. WinSCP then loads your private key for this connection.

image (12).png
  • Click OK.

  • Finally, click Connection

When the connection opens, the left panel displays your local folders, and the right panel displays your home directory on the Memority server.

Capture d'écran 2025-10-28 174040.png

Connect with a command-line FTP client

This section explains how to connect to the file exchange service using a command-line FTP client such as the Linux sftp utility.

Steps

  1. Open your terminal

  2. Enter the following command to connect:

CODE
sftp -oIdentityFile=<private_key> -oPort=22 <username>@share.<tenant>.memority.com

Where:

  • <private_key> is the path to your private key.

  • <username> is the username provided by the Memority team.

Example:

CODE
sftp -oIdentityFile=customer1.ppk -oPort=22 customer1@share.customer1.memority.com

When the connection opens, you are in your home directory on the Memority server.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.