Tuesday, 30 June 2020

SFTP connection setup using Public key from SAP CPI

Configure SAP CPI with SFTP using Public key based authentication:


Step 1: Host Key retrieval from SAP CPI - Connectivity

For SSH based communication, CPI tenant needs the host key of the sftp server, which has to be added to the known hosts file and deployed on the cpi tenant. The host key can either be downloaded from sftp server or has to be provided by the administrator of the sftp server.



You can download the host key with the SSH connection test with Connectivity Test option and the Copy Host Key and add to knownhost file.


Creating Public key:

For SSH  based communication using public key authentication towards the sftp server, a private key pair with the any alias like id_rsa or id_dsa is required in CPI tenant’s keystore. Create this key pair in CPI keystore for the connection to the sftp server and use the same alias in the sftp adapter configuration at private key alias.



As provided, configure the channel with the below parameters:










No comments:

Post a Comment