Skip to Content
0

SAP HCI to SFTP public key authentication

Jul 06, 2017 at 02:08 AM

392

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Nidhi Srivastava Jul 06, 2017 at 06:21 AM
2

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thx Nidhi,

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 but with public key authentication it is failing. Can you share whether you are using public key or user credentials authentication. What steps are required if we want to use public key authentication.

Regards

0

Hi Manu,

I was using basic authentication. Followed all the steps mentioned in the pdf.

Thanks,

Nidhi

0
Former Member
Nidhi Srivastava

Hi Nidhi, For basic authentication we don't need to follow all the steps, we need to create and known_hosts file and deploy in tenant.

Regards,

0
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,

0
avatar image
Former Member Jul 06, 2017 at 05:34 AM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

0