Register an SSH key

Use this task to register an SSH private key in DCT Compliance. Once registered, the key is available to select when creating SFTP file connectors with Public Key Authentication. SSH key registration is available through the API only; there is no GUI for this step.

Prerequisites

  • You have an SSH private key file for the SFTP server.

  • You have access to the DCT API (Swagger interface or REST client).

Steps

  1. Upload the private key file to the DCT file upload endpoint:

    Copy
    POST /v3/masking-file-uploads
    Content-Type: multipart/form-data

    file: <your-private-key-file>

    The response returns a file_reference_id. Copy this value — you need it in the next step.

  2. Create the SSH key in DCT using the file reference ID from the previous step:

    Copy
    POST /v3/ssh-keys
    Content-Type: application/json

    {
      "name": "my-sftp-key",
      "private_key_file_reference_id": "<file_reference_id>"
    }

    DCT creates an SSH key registration job. Wait for the job status to return as COMPLETED before proceeding.

The registered SSH key is now available in the Public Key Authentication option when creating an SFTP file connector. See Create a file connector.