Skip to Content
avatar image
Former Member

SAP HCI to SFTP public key authentication

Hi,

We have imported the known_hosts file in HCI. The user credentials connectivity is established but getting an error with public key authentication

com.jcraft.jsch.JSchException: Auth fail

What other steps should we follow. Is one of the step importing HCI public key in SFTP (if yes how can i get the HCI public key)

Regards,

Manu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 06, 2017 at 06:21 AM

    Hi Manu,

    PFB the link for the PDF i followed to configure the SFTP connection in HCI.

    https://assets.cdn.sap.com/sapcom/docs/2016/05/a856cc5a-717c-0010-82c7-eda71af511fa.pdf

    Hope you get the solution.

    Thanks,

    Nidhi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Nidhi Srivastava

      Hi Nidhi,

      Can you suggest how can i get the public key (which needs to be imported in the authority_keys on sftp) from the id_rsa keypair. We have already deployed known_hosts and id_rsa in HCI. Basic authentication is working but not public key authentication.

      Regards,

  • Jul 06, 2017 at 05:34 AM

    Hope you have added your sftp server IP and public key in the known_host file. If not you can do this using and key explorer software.

    Make sure, you have added id_rsa entry in your system.jks file.

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Apu,

      Thx. the know_host file has been imported and we are able to connect to sftp using basic authentication. (No issue with known_host file). We can read/write files with user credentials. Can you explain about adding id_rsa in system.jks. Is this required to connect using public key authentication? (We have not done this step)

      Regards