ERPClimb logoERPClimb

Integration Suite · Intermediate · Configuration

How to configure the SFTP adapter in SAP Cloud Integration

Write a file to an SFTP server from an integration flow with the server's host key verified through a deployed Known Hosts artifact and public key authentication.

APPLICABILITY
SAP Integration Suite, Cloud Integration capability. Connections to SFTP servers inside a company network additionally need SAP Cloud Connector and proxy type On-Premise.
TOOLS / TRANSACTIONS
Monitor → Connectivity Tests · Security Material · Keystore · SFTP receiver adapter

Your project assignment

A hypothetical logistics partner provides the SFTP server sftp.partner.example.com. Your interface must drop a daily file into the directory inbound/orders. Security requires host key validation and key-based logon.

Where to start: URLs and transactions

Connectivity test
Monitor → Integrations and APIs → Manage Security → Connectivity Tests → SSH
Known hosts artifact
Monitor → Integrations and APIs → Manage Security → Security Material → Create → Known Hosts (SSH)

Prerequisites

  • Tenant administrator or equivalent role for Connectivity Tests, Security Material and Keystore; integration developer role for the flow.
  • SFTP host, port, user name and target directory from the server owner, and the host key fingerprint confirmed through a second channel.
  • A key pair in the tenant keystore whose public key the server owner has assigned to the SFTP user.

Configuration workflow

Trusted, key-based file transfer

All steps visible. Play or advance one stage at a time.

Trusted, key-based file transferSSH connectivity test: Reach server, copy host key → Known Hosts artifact: Confirmed host key deployed → Keystore key pair: Public key assigned on the server → SFTP receiver adapter: File written and confirmed1SSH connectivity testReach server, copy host key2Known Hosts artifactConfirmed host key deployed3Keystore key pairPublic key assigned on the server4SFTP receiver adapterFile written and confirmed
The known hosts entry proves the server's identity; the key pair proves the tenant's identity. ERPClimb original instructional diagram · not a live SAP screenshot.

Hands-on implementation — step by step

Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.

0/7 completed
  1. 1

    Connectivity Tests → SSH with authentication None

    Open the SSH tab, enter the host and port, choose proxy type Internet and authentication None, and choose Send. In the response choose Copy Host Key.

    Connectivity Tests → SSH with authentication NoneERPClimb · illustrative screen
    Host
    sftp.partner.example.com (hypothetical)
    Port
    22
    Proxy Type
    Internet
    Authentication
    None

    Expected result: The server is reachable and its host key is copied.

    Why this matters: This test only checks reachability and lets you obtain the host key.

  2. 2

    Verify the host key out of band

    Compare the fingerprint of the copied key with the value the partner sent through a separate channel before you trust it.

    Verify the host key out of bandERPClimb · illustrative screen
    Source
    Partner security contact
    Result
    Fingerprints match

    Expected result: The key is confirmed as belonging to the partner server.

    Why this matters: A key copied from the network is only trustworthy once someone confirms it.

  3. 3

    Security Material → Create → Known Hosts (SSH)

    Choose Create and Known Hosts (SSH). Add the confirmed entry manually or import a known hosts file, then choose Deploy. If an artifact already exists, add the new entry to it rather than replacing other hosts.

    Security Material → Create → Known Hosts (SSH)ERPClimb · illustrative screen
    Artifact type
    Known Hosts (SSH)
    Entry
    Host name and public host key
    Action
    Deploy

    Expected result: The Known Hosts artifact is deployed and contains the partner entry.

    Why this matters: The artifact holds the public keys and addresses of the SFTP servers the tenant trusts.

  4. 4

    Keystore → key pair for public key logon

    In Manage Security → Keystore create or identify the key pair for this interface, download its public key and send it to the server owner to assign to the SFTP user.

    Keystore → key pair for public key logonERPClimb · illustrative screen
    Alias
    sftp_partner_key (hypothetical)
    Sent to partner
    Public key only

    Expected result: The partner confirms the public key is assigned to the user.

    Why this matters: The server authenticates the tenant with the public key; the private key never leaves the keystore.

  5. 5

    Connectivity Tests → SSH with Public Key

    Repeat the SSH test with authentication Public Key, the user name and the private key alias, with host key verification against the known hosts artifact and the option to check directory access.

    Connectivity Tests → SSH with Public KeyERPClimb · illustrative screen
    Authentication
    Public Key
    User Name
    cpi_orders (hypothetical)
    Private Key Alias
    sftp_partner_key
    Check directory access
    inbound/orders

    Expected result: The test succeeds and the directory is listed.

    Why this matters: A successful test here removes the network, trust and authentication from later troubleshooting.

  6. 6

    Integration flow → SFTP receiver adapter

    In your flow connect the last step to a Receiver and choose the SFTP adapter. Maintain the Target and Processing settings.

    Integration flow → SFTP receiver adapterERPClimb · illustrative screen
    Directory
    inbound/orders
    File Name
    orders_${date:now:yyyyMMdd}.xml (hypothetical)
    Address
    sftp.partner.example.com:22
    Authentication
    Public Key
    Handling for Existing Files
    Fail

    Expected result: The adapter is configured without validation errors.

    Why this matters: Directory, file name and the handling of existing files decide whether a rerun can overwrite data.

  7. 7

    Deploy, run one test message, check the server

    Deploy the flow, trigger one message with test content and check Monitor Message Processing. Ask the partner to confirm the file.

    Deploy, run one test message, check the serverERPClimb · illustrative screen
    Monitor status
    Completed
    File on server
    inbound/orders/orders_<date>.xml

    Expected result: The message is Completed and the partner sees the file.

    Why this matters: Only a file on the server proves the interface end to end.

Project acceptance checklist

Use this checklist to prepare evidence for your project lead.

0 of 4 checks marked. This does not certify the SAP configuration.

Validate your configuration

  • The SSH connectivity test with host key verification and public key authentication succeeds and lists the target directory.
  • A test message is Completed in monitoring and the file exists on the server under the expected name.

Common errors and what to check

  • the connectivity test or the message fails because the host key cannot be verified.

    Check: The server is missing from the deployed Known Hosts artifact, or its key changed: confirm the new key with the server owner before updating.

  • authentication fails.

    Check: The public key is not assigned to the user on the server, or the Private Key Alias in the adapter does not match the keystore entry.

  • the Known Hosts artifact cannot be deployed because of an invalid entry.

    Check: The line is not in the expected known hosts format; copy the host key from the connectivity test.

  • the test fails although the host is right.

    Check: The Host field contains a scheme or path; enter the host name only.

More in the SAP Library

Need help with a configuration error? Open ERPClimb Copilot.

Technical references & further reading