Skip to Content
avatar image
Former Member

Key based authentication issue in SFTP adapter

Dear Experts,

We have a scenario ECC -->SAP PI 7.0-->SFTP server where we are trying to connect to the SFTP server with a Advantco(3rd Party) SFTP adapter. We have placed our private key in a local folder in PI server (not using Net Weaver Key Store) and shared corresponding OpenSSH public key to the trading partner maintaining the SFTP adapter. However, while trying to connect the server through PI, we are getting “com.jcraft.jsch.JSchException: Auth fail” error. Our basis team has confirmed that the SFTP server is reachable when they are trying manually having the same key-pair, but only our SFTP adapter is not able to connect.

Could you please tell me if we are missing any part of configuration? Like any specific location we need to place the private key in PI server?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 01, 2014 at 05:48 AM

    It's solved now. there was some problem related to passphrase we were giving at the time of generating the key. We have generated a key pair without passphrase and the adapter can reach the target SFTP server properly.

    Thanks,

    Soham

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Soham,

      I am stuck with the same error. But in NWA, for PKCS12,we can't skip the password, its mandatory. How to proceed in this case.

      Kindly suggest.